diff --git a/plugin/insert-char.vim b/plugin/insert-char.vim index 9532f4f..f7182d9 100644 --- a/plugin/insert-char.vim +++ b/plugin/insert-char.vim @@ -3,7 +3,12 @@ function! InsertChar(char, count) endfunction nnoremap InsertChar :exec "normal i".InsertChar(nr2char(getchar()), v:count1) +nnoremap AppendChar :exec "normal a".InsertChar(nr2char(getchar()), v:count1) if !exists('g:insert_char_no_default_mapping') || (g:insert_char_no_default_mapping == 0) - nmap InsertChar + nmap _ InsertChar +end + +if !exists('g:append_char_no_default_mapping') || (g:append_char_no_default_mapping == 0) + nmap - AppendChar end