aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-15 13:24:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-15 13:24:31 +1200
commitefda0db46ab80d1a78a838885274cc606c3fa5e4 (patch)
tree9ec1f0596b569966df659520730a64482600a2c5
parentUse consistent version support specification (diff)
downloaddotfiles-efda0db46ab80d1a78a838885274cc606c3fa5e4.tar.gz
dotfiles-efda0db46ab80d1a78a838885274cc606c3fa5e4.zip
Revert "Remove redundant :pwd from mapping"
This reverts commit e5073155edd4fc8fa006ce35a060ddb41c32d17c. The :cd command doesn't seem to print the current directory, at least not consistently. It might be version-dependent. Using :pwd after the change ensures it will be displayed.
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 86ed4d8e..a194f137 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -279,7 +279,7 @@ nnoremap <Leader>f :<C-U>setlocal formatoptions?<CR>
nnoremap <Leader>F :<C-U>doautocmd filetypedetect BufRead<CR>
" \g changes directory to the current file's location
-nnoremap <Leader>g :<C-U>cd %:h<CR>
+nnoremap <Leader>g :<C-U>cd %:h<CR>:pwd<CR>
" \h toggles highlighting search results
nnoremap <Leader>h :<C-U>set hlsearch! hlsearch?<CR>