" ' - number of files for which the marks are remembered;
" " and < - maximum number of lines saved for a register;
" s - maximum size of an item in Kbytes.
+set viminfo=!,h,'50
if version < 603
- set viminfo=!,h,'50,\"1000
+ set viminfo+=\"1000
else
- set viminfo=!,h,'50,<1000,s10
+ set viminfo+=<1000,s10
endif
" c - convert viminfo to the current encoding;
if has("iconv")
- set viminfo^=c
+ set viminfo+=c
endif
" Removable media paths
set wildmode=list:longest
set viminfo=!,h,'10,<100,s5
if has("iconv")
- set viminfo^=c
+ set viminfo+=c
endif
syntax off
highlight NonText cterm=NONE ctermfg=NONE
echoerr 'Error running chmod: ' . v:shell_error
endif
checktime
+ autocmd! FileChangedShell <buffer>
endfunction
function! _BufChangedCB()
autocmd! FileChangedShell <buffer>
command! ToggleXbit if executable(expand("%:p")) | call SetExecutableBit(0) | else | call SetExecutableBit(1) | endif
endif
+function! Code()
+ setlocal tabstop=8 softtabstop=4 shiftwidth=4 expandtab
+endfunction
+command! Code call Code()
+
+function! Text()
+ setlocal tabstop=8 softtabstop=3 shiftwidth=3 expandtab
+endfunction
+command! Text call Text()
" ----------
" From http://slobin.pp.ru/vim/_vimrc.html