-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
65 lines (49 loc) · 2.01 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" General settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Indent style
set shiftwidth=4 " two spaces per indent
set tabstop=4 " number of spaces per tab in display
set softtabstop=4 " number of spaces per tab when inserting
set expandtab " substitute spaces for tabs
" Filetype
filetype indent on
syntax enable
" Display
set ruler " show cursor position
set nonumber " hide line numbers
set nolist " hide tabs and EOL chars
set showcmd " show normal mode commands as they are entered
set showmode " show editing mode in status (-- INSERT --)
set showmatch " flash matching delimiters
" Scrolling
set scrolljump=5 " scroll five lines at a time vertically
set sidescroll=10 " minumum columns to scroll horizontally
" Search
set nohlsearch " don't persist search highlighting
set incsearch " search with typeahead
" Indent
set autoindent " carry indent over to new lines
" Other
set noerrorbells " no bells in terminal
set backspace=indent,eol,start " enable backspace
set tags=tags;/ " search up the directory tree for tags
set undolevels=1000 " number of undos stored
set viminfo='50,"50 " '=marks for x files, "=registers for x files
set modelines=0 " disable modelines
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Additional settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Splits navigation
noremap <C-l> <C-w>l
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
" Line numbers
set nu
set relativenumber
colorscheme default
" New line at the end of files
set eol
" Refresh
set autoread