.vim/autoload/vimrc.vim

changeset 586
ab5763bb6ca7
parent 583
e2c2404479d3
child 606
37b21dd61717
equal deleted inserted replaced
585:6136cb64836c 586:ab5763bb6ca7
3 if &formatoptions =~ 'a' 3 if &formatoptions =~ 'a'
4 setl fo-=a | echo '-a' 4 setl fo-=a | echo '-a'
5 else 5 else
6 setl fo+=a | echo '+a' 6 setl fo+=a | echo '+a'
7 endif 7 endif
8 endfunc
9
10 func! vimrc#Ltag(term) abort
11 exe "ltag " . a:term
12 lopen
8 endfunc 13 endfunc
9 14
10 " Make paths when writing, as necessary 15 " Make paths when writing, as necessary
11 func! vimrc#MkNonExDir(file, buf) abort 16 func! vimrc#MkNonExDir(file, buf) abort
12 if empty(getbufvar(a:buf, '&buftype')) && a:file!~#'\v^\w+\:\/' 17 if empty(getbufvar(a:buf, '&buftype')) && a:file!~#'\v^\w+\:\/'

mercurial