Plugin 'vim-latex/vim-latex'
Plugin 'alx741/vinfo'
Plugin 'derekwyatt/vim-protodef'
+Plugin 'ram-z/vim-clang-format'
+Plugin 'sgeb/vim-diff-fold'
" needs editing colorscheme
" Plugin 'jeaye/color_coded'
" Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp
" open folds when jumping to line
set foldopen+=jump
-" save and restore folds
-set viewoptions=cursor " only save cursor position
+set viewoptions=cursor " save cursor position
+set viewoptions+=folds " save folds
" diff mode {{{2
set diffopt+=filler " show filler lines
nnoremap ]oe :set noexpandtab<CR>
for idt in range(1,8)
- exe 'nnoremap co'.idt.' :set tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'<CR>'
+ exe 'nnoremap co'.idt.' :setlocal tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'<CR>'
endfor
" toggle auto format of text