Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docs:vim:vimrc [2010/12/16 13:42] billhdocs: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 307: Line 307:
 " always change current (local) directory to directory of current buffer " always change current (local) directory to directory of current buffer
 " http://vim.wikia.com/wiki/Change_to_the_directory_of_the_current_file " http://vim.wikia.com/wiki/Change_to_the_directory_of_the_current_file
-if exists('+autochdir'+autocmd BufEnter * silent! lcd %:p:h:gs/ /\\ /
-  set autochdir +
-else +
-  autocmd BufEnter * silent! lcd %:p:h:gs/ /\\ / +
-endif+
  
 " make diff colors more like winmerge " make diff colors more like winmerge
  • docs/vim/vimrc.1292532120.txt.gz
  • Last modified: 2010/12/16 13:42
  • by billh