diff --git a/vimrc b/vimrc index 28bbc83..b4b546a 100644 --- a/vimrc +++ b/vimrc @@ -164,7 +164,7 @@ nnoremap ry diw"0P inoremap jk -nnoremap A :call Checksemicolon() +nnoremap A :call CheckLineEnding() nnoremap co :!clear; @@ -366,9 +366,9 @@ augroup END " #functions -function! Checksemicolon() +function! CheckLineEnding() :normal $ - if getline('.')[col('.')-1] == ';' + if getline('.')[col('.')-1] == ';' || getline('.')[col('.')-1] == ',' :startinsert else :startinsert!