checksemicolon is now CheckLineEnding and checks for commas also
This commit is contained in:
parent
4bf37c2fb9
commit
80b0c9bc5d
6
vimrc
6
vimrc
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue