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 "{{{