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 [',', '.', '!', '?', ';', ':']