-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
45 lines (34 loc) · 866 Bytes
/
.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
" enable vim features
set nocompatible
" enable syntax and plugins (for netrw)
syntax enable
filetype plugin on
" omnicpp
set nocp
filetype plugin on
command! MakeTags !ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
" Search down into subfolders
" Provides tab-completion for all file-related tasks
set path+=**
" Display all matching files upon tab complete
set wildmenu
" Display line numbers
set number
"filetype plugin on
"set omnifunc=omni#cpp#complete#Main
" Tab to 2 spaces
set tabstop=4
set expandtab
" Enable auto indentation
set autoindent
" Enable easier buffer switching
:nnoremap <F5> :buffers<CR>:buffer<Space>
" Enable easier split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-H> <C-W><C-H>
nnoremap <C-L> <C-W><C-L>
" Automatic bracket matching
inoremap { {}<Esc>i
inoremap ( ()<Esc>i
inoremap [ []<Esc>i