From a8334b2897424d6fdabbff2d7cb806c0a16b0d39 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sat, 9 Jun 2018 15:54:57 +0100 Subject: [PATCH] removed CheckLineEnding function --- vimrc.d/mappings.vim | 3 ++- vimrc.functions.vim | 11 ----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/vimrc.d/mappings.vim b/vimrc.d/mappings.vim index 427a28a..657001b 100644 --- a/vimrc.d/mappings.vim +++ b/vimrc.d/mappings.vim @@ -9,7 +9,8 @@ nnoremap nn :set invrelativenumber nnoremap nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" nnoremap sw :set invlist " inoremap jk -nnoremap A :call CheckLineEnding() +" nnoremap aa :call CheckLineEnding() +nnoremap aa A nnoremap co :!clear; " Focus on current fold, close the rest nnoremap zz zMzvzt diff --git a/vimrc.functions.vim b/vimrc.functions.vim index 99af009..124d1bd 100644 --- a/vimrc.functions.vim +++ b/vimrc.functions.vim @@ -104,17 +104,6 @@ function! MyFoldText() endfunction "}}} -function! CheckLineEnding() abort -"{{{ - :normal $ - if getline('.')[col('.')-1] == ';' || getline('.')[col('.')-1] == ',' - :startinsert - else - :startinsert! - endif -endfunction -"}}} - " get name of syntax item function! SyntaxItem() abort "{{{