checksemicolon is now CheckLineEnding and checks for commas also

This commit is contained in:
ManjaroOne666 2018-03-05 16:21:38 +00:00
parent 4bf37c2fb9
commit 80b0c9bc5d
1 changed files with 3 additions and 3 deletions

6
vimrc
View File

@ -164,7 +164,7 @@ nnoremap <leader>ry diw"0P
inoremap jk <esc>
nnoremap A :call Checksemicolon()<CR>
nnoremap A :call CheckLineEnding()<CR>
nnoremap <leader>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!