diff --git a/core/mappings.vim b/core/mappings.vim index b8424e4..a7712df 100644 --- a/core/mappings.vim +++ b/core/mappings.vim @@ -180,4 +180,12 @@ onoremap iu :call text_obj#URL() " Text objects for entire buffer xnoremap iB :call text_obj#Buffer() onoremap iB :call text_obj#Buffer() + +" Do not move my cursor when joining lines. +nnoremap J mzJ`z + +" Break inserted text into smaller undo units. +for ch in [',', '.', '!', '?', ';', ':'] + execute printf('inoremap %s %su', ch, ch) +endfor "}