Keeping gvimrc on par with vimrc

This commit is contained in:
fedora 2019-06-03 14:43:20 +02:00
parent c0fd92e5c7
commit 0b93c5222d
Signed by: wanderer
GPG Key ID: 7B28D8DC28BD2388

18
gvimrc
View File

@ -113,14 +113,24 @@ set showcmd " show command status
set showmatch " flashes matching parenthese when cursor over the other one
set showmode " show editing mode in status (-- INSERT --)
set ruler " show cursor position
set nofen
set foldmethod=indent " indent based folding
set errorbells " bells in terminal
set undolevels=1000 " number of undos stored
set viminfo='50,"50 " '=marks for x files, "=registers for x files
set nofen
"set foldmethod=indent " indent based folding
" define indent-based folding, after loading a file switch to manual folding
augroup vimrc
au BufReadPre * setlocal foldmethod=indent
au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif
augroup END
" autosave and load views
au BufWinLeave ?* mkview
au BufWinEnter ?* silent loadview
au FileType xml setlocal shiftwidth=2 tabstop=2
au FileType c setl ofu=ccomplete#CompleteCpp
au BufNewFile,BufRead *.py,*.pyw,*.pyx,?akefil*