Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:vim:vimrc [2010/11/04 14:07] – billh | docs:vim:vimrc [2011/12/16 10:24] (current) – [my .vimrc] fixed bug where browse listing was lost and a file was sometimes showing in place on that tab billh | ||
---|---|---|---|
Line 171: | Line 171: | ||
" // commenting/ | " // commenting/ | ||
- | map g/ :s/^\([ \t]*\)/ | + | map g/ :s/^\([ \t]*\)/ |
- | map g? :s/^\([ \t]*\)\/\/ \{0,1}\([ \t]*\)/ | + | map g? :s/^\([ \t]*\)\/\/ \{0,1}\([ \t]*\)/ |
" use , and . to shift indent and keep selection | " use , and . to shift indent and keep selection | ||
Line 307: | Line 307: | ||
" always change current (local) directory to directory of current buffer | " always change current (local) directory to directory of current buffer | ||
" http:// | " http:// | ||
- | if exists(' | + | autocmd BufEnter * silent! lcd %:p:h:gs/ /\\ / |
- | set autochdir | + | |
- | else | + | |
- | | + | |
- | endif | + | |
" make diff colors more like winmerge | " make diff colors more like winmerge |