set expandtab " expand tabs
set notextmode " no - I am using Vim on UNIX!
set textwidth=0 " Don't wrap words by default
+set cc=+1
set title " Permet de voir le tit. du doc. crt. ds les XTERM
set viminfo='1000,/1000,:1000,<1000,@1000,n~/.viminfo
set history=1000
" What info to store from an editing session
" in the viminfo file; can be used at next session.
+set undofile
+set undodir=~/.cache/vim/
+au BufWritePre /tmp/* setlocal noundofile
set sessionoptions=buffers,folds,localoptions,options,tabpages,help
set ignorecase " Do case insensitive matching
set tags=tags;/,.tags;/,TAGS;/
set cinoptions=
+set cinoptions+=L0.5s " align labels at 0.5 shiftwidth
+set cinoptions+=:0.5s,=0.5s " same for case labels and code following a label
+set cinoptions+=g0.5s,h0.5s " same for c++ stuff
set cinoptions+=t0 " type on the line before the functions is not idented
-set cinoptions+=:2,=2 " indent case ...: of 2 from the switch {
set cinoptions+=(0,Ws " indent in functions ( ... ) when it breaks
-set cinoptions+=g2,h2 " indent C++ scope of 2, and the members from 2 from it
set cinoptions+=m1 " aligh the closing ) properly
-"set cinoptions+=l1 " align closing brace with the case
-"set cinoptions+=b1 " align break; with case ...:
+set cinoptions+=j1 " java/javscript -> fixes blocks
+"set cinoptions+=l0.5s " align code after label ignoring braces.
set diffopt=filler,context:5,iwhite
set fillchars+=diff:\ ,vert:│
set makeprg=LC_ALL=C\ make\ MONOCHROME=1
-set grepprg=egrep\ -n\ $*\ /dev/null
+set grepprg=egrep\ --exclude='*.blk.c'\ --exclude='*.blkk.cc'\ -n\ $*\ /dev/null
exe "set path=." . system("echo | cpp -v 2>&1 | grep '^ .*/include' | tr -d \"\n\" | tr \" \" \",\"")
set path+=.;/
" }}}
-map + :cn<cr>
-map - :cp<cr>
-map <kPlus> :cn<cr>
-map <kMinus> :cp<cr>
+map + :cnext<cr>
+map - :cprevious<cr>
+map <kPlus> :cnext<cr>
+map <kMinus> :cprevious<cr>
map Q gq
noremap <F7> :set ai!<CR>:set ai?<cr>
inoremap <F7> <space><esc><F7>a<bs>
-noremap <F9> :bp<cr>
-inoremap <F9> <esc>:bp<cr>
-noremap <F10> :bn<cr>
-inoremap <F10> <esc>:bn<cr>
noremap <F11> :make!<cr>:bo cw 8<cr><cr>
inoremap <F11> <esc>:make!<cr>:bo cw 8<cr><cr>
noremap <S-F11> :make clean<cr><cr>
filetype plugin indent on
syntax on
+ au Syntax {cpp,c,javascript} runtime syntax/doxygen.vim
+
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
exec <SID>myhi("Normal", "none", "dfdfdf", "NONE")
exec <SID>myhi("MoreMsg", "none", "dfdfdf", "NONE")
endif
- exec <SID>myhi("Comment", "none", "afafff", "0f0f2f")
- exec <SID>myhi("Folded", "none", "afafff", "0f0f2f")
+ exec <SID>myhi("ColorColumn", "none", "NONE", "0f0f0f")
+ exec <SID>myhi("Comment", "none", "afafff", "0f0f0f")
+ exec <SID>myhi("Folded", "none", "afafff", "0f0f0f")
- exec <SID>myhi("SpecialKey", "none", "dfdfdf", "0f0f2f")
- exec <SID>myhi("Todo", "underline", "yellow", "333333")
+ exec <SID>myhi("SpecialKey", "none", "dfdfdf", "0f0f0f")
+ exec <SID>myhi("Todo", "underline", "yellow", "2f2f2f")
exec <SID>myhi("Error", "bold", "white", "red")
- exec <SID>myhi("Function", "none", "4fcfcf", "NONE")
- exec <SID>myhi("Identifier", "none", "4fcfcf", "NONE")
+ exec <SID>myhi("Function", "none", "4fdfdf", "NONE")
+ exec <SID>myhi("Identifier", "none", "4fdfdf", "NONE")
exec <SID>myhi("Cursor", "reverse", "dfdfdf", "black")
- exec <SID>myhi("Visual", "none", "NONE", "333333")
+ exec <SID>myhi("Visual", "none", "NONE", "2f2f2f")
exec <SID>myhi("IncSearch", "none", "black", "yellow")
exec <SID>myhi("Search", "none", "black", "yellow")
- exec <SID>myhi("StatusLine", "none", "yellow", "333333")
+ exec <SID>myhi("StatusLine", "none", "yellow", "2f2f2f")
exec <SID>myhi("StatusLineNc", "none", "dfdfdf", "1c1c1c")
- exec <SID>myhi("WildMenu", "none", "white", "0f0f2f")
- exec <SID>myhi("VertSplit", "none", "darkgray", "0f0f2f")
+ exec <SID>myhi("WildMenu", "none", "white", "0f0f0f")
+ exec <SID>myhi("VertSplit", "none", "darkgray", "0f0f0f")
exec <SID>myhi("NonText", "none", "darkgray", "NONE")
- exec <SID>myhi("MatchParen", "none", "white", "0f0f2f")
- exec <SID>myhi("Pmenu", "none", "dfdfdf", "0f0f2f")
+ exec <SID>myhi("MatchParen", "none", "white", "0f0f0f")
+ exec <SID>myhi("Pmenu", "none", "dfdfdf", "0f0f0f")
exec <SID>myhi("PmenuSel", "none", "white", "3f3f7f")
- exec <SID>myhi("PmenuSbar", "none", "white", "0f0f2f")
+ exec <SID>myhi("PmenuSbar", "none", "white", "0f0f0f")
exec <SID>myhi("PmenuThumb", "none", "3f3f7f", "3f3f7f")
exec <SID>myhi("SpellBad", "none", "NONE", "800000")
exec <SID>myhi("Repeat", "none", "bf7f00", "NONE")
exec <SID>myhi("Statement", "none", "bf7f00", "NONE")
- exec <SID>myhi("StorageClass", "none", "3fbf3f", "NONE")
- exec <SID>myhi("Type", "none", "3fbf3f", "NONE")
- exec <SID>myhi("Structure", "none", "3fbf3f", "NONE")
- exec <SID>myhi("Directory", "none", "3fbf3f", "NONE")
+ exec <SID>myhi("StorageClass", "none", "20b020", "NONE")
+ exec <SID>myhi("Type", "none", "20b020", "NONE")
+ exec <SID>myhi("Structure", "none", "20b020", "NONE")
+ exec <SID>myhi("Directory", "none", "20b020", "NONE")
exec <SID>myhi("Include", "none", "bf0fbf", "NONE")
exec <SID>myhi("PreProc", "none", "bf0fbf", "NONE")
" C
exec <SID>myhi("cFunction", "none", "b0b0b0", "NONE")
+
+ " Doxygen
+ if !exists(':SynLink')
+ command -nargs=+ SynLink hi def link <args>
+ endif
+ SynLink doxygenSpecialTypeOnelineDesc doxygenBrief
+ SynLink doxygenSpecialOnelineDesc doxygenBrief
+ SynLink doxygenSpecialHeading doxygenBrief
+ SynLink doxygenParamDirection doxygenSpecial
+
+ exec <SID>myhi("doxygenComment", "none", "6060ff", "0f0f0f")
+ exec <SID>myhi("doxygenBrief", "none", "6060ff", "0f0f0f")
+ exec <SID>myhi("doxygenPrev", "none", "6060ff", "0f0f0f")
+ exec <SID>myhi("doxygenParam", "none", "6060ff", "0f0f0f")
+ exec <SID>myhi("doxygenSpecial", "none", "6060ff", "0f0f0f")
+ exec <SID>myhi("doxygenParamName", "underline", "6060ff", "0f0f0f")
else
hi Comment cterm=none ctermfg=blue ctermbg=none
hi Folded cterm=none ctermfg=brown ctermbg=none