diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/mappings.vim | 8 |
1 files changed, 8 insertions, 0 deletions
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 <silent> iu :<C-U>call text_obj#URL()<CR> " Text objects for entire buffer xnoremap <silent> iB :<C-U>call text_obj#Buffer()<CR> onoremap <silent> iB :<C-U>call text_obj#Buffer()<CR> + +" 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 %s<C-g>u', ch, ch) +endfor "} |
