-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
executable file
·34 lines (24 loc) · 797 Bytes
/
Copy pathvimrc
File metadata and controls
executable file
·34 lines (24 loc) · 797 Bytes
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
set tabstop=4
set shiftwidth=4
set expandtab
set hlsearch
set autoindent
colorscheme elflord
au BufEnter [Mm]akefile* set noet
au BufLeave [Mm]akefile* set et
au BufEnter GNUmakefile* set noet
au BufLeave GNUmakefile* set et
au BufEnter gnumakefile* set noet
au BufLeave gnumakefile* set et
" Save files with sudo rights
:command! W w !sudo tee % > /dev/null
set directory=~/tmp
" configure tags - add additional tags here or comment out not-used ones
set tags+=~/.vim/tags/cpp
set tags+=~/.vim/tags/gl
set tags+=~/.vim/tags/sdl
set tags+=~/.vim/tags/qt4
set tags+=./tags
" build tags of your own project with Ctrl-F12
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
"autocmd BufEnter ~/src/x/cloud_x/* :setlocal tags+=~/src/xx/cloud_x/tags