diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-23 17:13:02 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-23 17:13:02 +1200 |
commit | 39faf749a08491e53cea0d10f417eb149d9fd7e6 (patch) | |
tree | 512b17365a32618f97ba375d434961140cc34e84 | |
parent | Bind \g in Vim to go to the current buffer's dir (diff) | |
download | dotfiles-39faf749a08491e53cea0d10f417eb149d9fd7e6.tar.gz dotfiles-39faf749a08491e53cea0d10f417eb149d9fd7e6.zip |
Print working directory after \g in Vim
-rw-r--r-- | vim/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ endif " \f shows the current 'formatoptions' at a glance nnoremap \f :<C-U>set formatoptions?<CR> " \g changes directory to the current file's location -nnoremap \g :<C-U>cd %:h<CR> +nnoremap \g :<C-U>cd %:h<CR>:pwd<CR> " \h toggles highlighting search results nnoremap \h :<C-U>set hlsearch! hlsearch?<CR> " \i toggles showing matches as I enter my pattern |