diff options
Diffstat (limited to 'vim/init/keymaps.vim')
-rw-r--r-- | vim/init/keymaps.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim index 345ebb2..9128b8d 100644 --- a/vim/init/keymaps.vim +++ b/vim/init/keymaps.vim | |||
@@ -80,8 +80,9 @@ map <leader>pp :setlocal paste!<CR> | |||
80 | 80 | ||
81 | " Switch CWD to the directory of the open buffer | 81 | " Switch CWD to the directory of the open buffer |
82 | nnoremap cd :cd %:p:h<CR>:pwd<CR> | 82 | nnoremap cd :cd %:p:h<CR>:pwd<CR> |
83 | " Switch CDW to root git directory | 83 | " Switch CWD to root git directory |
84 | nnoremap cdg :execute 'cd' fnameescape(fnamemodify(finddir('.git', escape(expand('%:p:h'), ' ') . ';'), ':h'))<CR>:pwd<CR> | 84 | nnoremap cdg :execute 'cd' fnameescape(fnamemodify(finddir('.git', escape(expand('%:p:h'), ' ') . ';'), ':h'))<CR>:pwd<CR> |
85 | |||
85 | " alias for cd | 86 | " alias for cd |
86 | nnoremap cdd :cd<space> | 87 | nnoremap cdd :cd<space> |
87 | nnoremap cd.. :cd .. <CR>:pwd<CR> | 88 | nnoremap cd.. :cd .. <CR>:pwd<CR> |