aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init
diff options
context:
space:
mode:
Diffstat (limited to 'vim/init')
-rw-r--r--vim/init/keymaps.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim
index 14d813b..f789ceb 100644
--- a/vim/init/keymaps.vim
+++ b/vim/init/keymaps.vim
@@ -78,9 +78,9 @@ vnoremap <leader>, :terminal<CR>
78map <leader>pp :setlocal paste!<cr> 78map <leader>pp :setlocal paste!<cr>
79 79
80" Switch CDW to root git directory 80" Switch CDW to root git directory
81nnoremap <Leader>cg :execute 'cd' fnameescape(fnamemodify(finddir('.git', escape(expand('%:p:h'), ' ') . ';'), ':h'))<CR>:pwd<CR> 81nnoremap cdg :execute 'cd' fnameescape(fnamemodify(finddir('.git', escape(expand('%:p:h'), ' ') . ';'), ':h'))<CR>:pwd<CR>
82" Switch CWD to the directory of the open buffer 82" Switch CWD to the directory of the open buffer
83map <leader>cd :cd %:p:h<cr>:pwd<cr> 83nnoremap cd :cd %:p:h<cr>:pwd<cr>
84 84
85" Move one line up and down 85" Move one line up and down
86nnoremap <C-j> ddp 86nnoremap <C-j> ddp