aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/init
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-06-25 23:09:03 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-06-25 23:09:03 +0800
commit59de29d5164d245dda1608f5e14cf4e1c981ad3e (patch)
tree6ac4d17b0db9b59fbc70e74efe5a06f458973904 /vim/init
parentba90f7398b34736f1ace01b0af90dff795fca8fb (diff)
Update
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