From 0c92d9a01843314cfe85da27e0c81f83c86362f1 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 10 Aug 2022 21:21:38 +0800 Subject: [PATCH] update mappings 1. add mapping for gJ 2. remove mappings for , since I rarely use them --- core/mappings.vim | 5 +---- 1 file changed, 1 insertion(+), 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 / :call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l") -" Find and replace (like Sublime Text 3) -nnoremap :%s/ -xnoremap :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 cd :lcd %:p:h:pwd @@ -171,6 +167,7 @@ onoremap iB :call text_obj#Buffer() " 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 [',', '.', '!', '?', ';', ':']