tidy up
This commit is contained in:
parent
fe2b02ea89
commit
1adc1a48b2
|
@ -123,7 +123,8 @@ inoremap ;; ;<esc>
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
" #abbreviations{{{
|
" #abbreviations
|
||||||
|
"{{{
|
||||||
iabbrev adn and
|
iabbrev adn and
|
||||||
iabbrev waht what
|
iabbrev waht what
|
||||||
iabbrev tehn then
|
iabbrev tehn then
|
||||||
|
|
|
@ -95,8 +95,8 @@ function! MyFoldText()
|
||||||
let l:line = getline(v:foldstart)
|
let l:line = getline(v:foldstart)
|
||||||
|
|
||||||
let l:prefix = '|+' . l:linecount . v:folddashes . '| '
|
let l:prefix = '|+' . l:linecount . v:folddashes . '| '
|
||||||
|
|
||||||
let l:subexp = '^ \{,' . len(l:prefix) . '}'
|
let l:subexp = '^ \{,' . len(l:prefix) . '}'
|
||||||
|
|
||||||
let l:foldtext = substitute(l:line, l:subexp, l:prefix, '')
|
let l:foldtext = substitute(l:line, l:subexp, l:prefix, '')
|
||||||
let l:foldtext = substitute(l:foldtext, '"{{{', '', '')
|
let l:foldtext = substitute(l:foldtext, '"{{{', '', '')
|
||||||
|
|
||||||
|
@ -105,7 +105,8 @@ endfunction
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
function! CheckLineEnding() abort
|
function! CheckLineEnding() abort
|
||||||
:normal $"{{{
|
"{{{
|
||||||
|
:normal $
|
||||||
if getline('.')[col('.')-1] == ';' || getline('.')[col('.')-1] == ','
|
if getline('.')[col('.')-1] == ';' || getline('.')[col('.')-1] == ','
|
||||||
:startinsert
|
:startinsert
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue