From 1adc1a48b2f64e201da552ec13815ab08bd0dc63 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Tue, 8 May 2018 22:28:12 +0100 Subject: [PATCH] tidy up --- vimrc.d/mappings.vim | 3 ++- vimrc.functions.vim | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/vimrc.d/mappings.vim b/vimrc.d/mappings.vim index 7cbb64a..2a10a0c 100644 --- a/vimrc.d/mappings.vim +++ b/vimrc.d/mappings.vim @@ -123,7 +123,8 @@ inoremap ;; ; "}}} -" #abbreviations{{{ +" #abbreviations +"{{{ iabbrev adn and iabbrev waht what iabbrev tehn then diff --git a/vimrc.functions.vim b/vimrc.functions.vim index b30103e..b4684e1 100644 --- a/vimrc.functions.vim +++ b/vimrc.functions.vim @@ -95,8 +95,8 @@ function! MyFoldText() let l:line = getline(v:foldstart) let l:prefix = '|+' . l:linecount . v:folddashes . '| ' - let l:subexp = '^ \{,' . len(l:prefix) . '}' + let l:foldtext = substitute(l:line, l:subexp, l:prefix, '') let l:foldtext = substitute(l:foldtext, '"{{{', '', '') @@ -105,7 +105,8 @@ endfunction "}}} function! CheckLineEnding() abort - :normal $"{{{ +"{{{ + :normal $ if getline('.')[col('.')-1] == ';' || getline('.')[col('.')-1] == ',' :startinsert else