From 80b0c9bc5dd6d2dd0c897263f068b985654149e7 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Mon, 5 Mar 2018 16:21:38 +0000 Subject: [PATCH] checksemicolon is now CheckLineEnding and checks for commas also --- vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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!