aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-23 17:13:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-23 17:13:02 +1200
commit39faf749a08491e53cea0d10f417eb149d9fd7e6 (patch)
tree512b17365a32618f97ba375d434961140cc34e84
parent3b7b5b7026e96be7d37aacb7d13cd8f7e70f898e (diff)
downloaddotfiles-39faf749a08491e53cea0d10f417eb149d9fd7e6.tar.gz
dotfiles-39faf749a08491e53cea0d10f417eb149d9fd7e6.zip
Print working directory after \g in Vim
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index ee05236c..ab4e971d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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