Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vim: replace autochdir with mapping

  • Loading branch information...
commit d1d2fbc717d8c272caba6e5f067f317132944e9f 1 parent f7db6e3
@bkzl authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  vimrc
3  vimrc
@@ -15,7 +15,6 @@ set number
set showcmd
set laststatus=2
set cursorline
-set autochdir
set clipboard=unnamed
set backupdir=~/.vim/backup
set directory=~/.vim/swap
@@ -46,6 +45,8 @@ nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
inoremap jk <Esc>
+cnoremap %% <c-r>=expand('%:h').'/'<cr>
+map <leader>e :e %%
" Remap the tab key to do autocompletion or indentation depending on the
" context
Please sign in to comment.
Something went wrong with that request. Please try again.