diff options
| author | jdhao <jdhao@hotmail.com> | 2022-08-10 21:21:38 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-08-10 21:24:14 +0800 |
| commit | 0c92d9a01843314cfe85da27e0c81f83c86362f1 (patch) | |
| tree | 1a827b4d1dfe6a90f087e7fabac66c3afedf6aa4 /core | |
| parent | 369687b047d851e46577ef8d1f9198ca8c97697f (diff) | |
update mappings
1. add mapping for gJ
2. remove mappings for <C-H>, since I rarely use them
Diffstat (limited to 'core')
| -rw-r--r-- | core/mappings.vim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/mappings.vim b/core/mappings.vim index c219614..b21a664 100644 --- a/core/mappings.vim +++ b/core/mappings.vim @@ -101,10 +101,6 @@ nnoremap / /\v " Search in selected region xnoremap / :<C-U>call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l")<CR> -" Find and replace (like Sublime Text 3) -nnoremap <C-H> :%s/ -xnoremap <C-H> :s/ - " Change current working directory locally and print cwd after that, " see https://vim.fandom.com/wiki/Set_working_directory_to_the_current_file nnoremap <silent> <leader>cd :<C-U>lcd %:p:h<CR>:pwd<CR> @@ -171,6 +167,7 @@ onoremap <silent> iB :<C-U>call text_obj#Buffer()<CR> " Do not move my cursor when joining lines. nnoremap J mzJ`z +nnoremap gJ mzgJ`z " Break inserted text into smaller undo units. for ch in [',', '.', '!', '?', ';', ':'] |
