X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/58d46aa2146196e37a219175ae5710588d2bb6b2..b5766e6efe39b6aa6f4b2f7e5afbf55e8f4c8762:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 1d92925..2fe8780 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -70,6 +70,9 @@ Plugin 'vim-latex/vim-latex' Plugin 'alx741/vinfo' Plugin 'derekwyatt/vim-protodef' Plugin 'ram-z/vim-clang-format' +Plugin 'sgeb/vim-diff-fold' +Plugin 'tpope/vim-vinegar' +Plugin 'vimwiki/vimwiki' " needs editing colorscheme " Plugin 'jeaye/color_coded' " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp @@ -207,8 +210,8 @@ set foldlevelstart=0 " value for 'foldlevel' when starting to edit a " 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 @@ -467,7 +470,7 @@ nnoremap [oe :set expandtab nnoremap ]oe :set noexpandtab for idt in range(1,8) - exe 'nnoremap co'.idt.' :set tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'' + exe 'nnoremap co'.idt.' :setlocal tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'' endfor " toggle auto format of text @@ -553,7 +556,7 @@ let g:pymode_rope = 0 let g:pymode_run = 0 let g:pymode_folding = 1 let g:pymode_lint_ignore = "E221,E266,E501" -let g:pymode_lint_cwindow = 0 " don't open cwindow when linting +let g:pymode_lint_cwindow = 1 " don't open cwindow when linting let g:pymode_syntax_space_errors = 0 " don't bother me when I'm typing " signature {{{2 @@ -733,6 +736,11 @@ xmap T Sneak_T omap t Sneak_t omap T Sneak_T +" vim-wiki {{{2 +let default_wiki = {} +let default_wiki.path = '~/wiki' +let g:vimwiki_list = [default_wiki] + " functions {{{1 " Convenient command to see the difference between the current buffer and the