From 39faf749a08491e53cea0d10f417eb149d9fd7e6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 23 Jun 2018 17:13:02 +1200 Subject: Print working directory after \g in Vim --- vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim') 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 :set formatoptions? " \g changes directory to the current file's location -nnoremap \g :cd %:h +nnoremap \g :cd %:h:pwd " \h toggles highlighting search results nnoremap \h :set hlsearch! hlsearch? " \i toggles showing matches as I enter my pattern -- cgit v1.2.3