checksemicolon is now CheckLineEnding and checks for commas also

This commit is contained in:
ManjaroOne666 2018-03-05 16:21:38 +00:00
commit 80b0c9bc5d

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!