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