.vim/autoload/vimrc.vim

changeset 640
f8985ae54969
parent 632
9a87ce42aa3c
child 641
60b56bbfc143
equal deleted inserted replaced
639:383628663fd5 640:f8985ae54969
2 execute printf('cnoreabbrev <expr> %s (getcmdtype()==":" && getcmdline()=="%s") ? "%s" : "%s"', a:abbrev, a:abbrev, a:expand, a:abbrev) 2 execute printf('cnoreabbrev <expr> %s (getcmdtype()==":" && getcmdline()=="%s") ? "%s" : "%s"', a:abbrev, a:abbrev, a:expand, a:abbrev)
3 endfunc 3 endfunc
4 4
5 func! vimrc#AutoFmtToggle() abort 5 func! vimrc#AutoFmtToggle() abort
6 if &formatoptions =~ 'a' 6 if &formatoptions =~ 'a'
7 setl fo-=a | echo '-a' 7 setl formatoptions-=a | echo '-a'
8 else 8 else
9 setl fo+=a | echo '+a' 9 setl formatoptions+=a | echo '+a'
10 endif 10 endif
11 endfunc 11 endfunc
12 12
13 func! vimrc#Ltag(term) abort 13 func! vimrc#Ltag(term) abort
14 exe "ltag " . a:term 14 exe "ltag " . a:term
48 cd - 48 cd -
49 49
50 echo "Installed Vundle, run :PluginInstall if desired" 50 echo "Installed Vundle, run :PluginInstall if desired"
51 endif 51 endif
52 52
53 let &rtp .= ',' . bundlepath . '/vundle' 53 let &runtimepath .= ',' . bundlepath . '/vundle'
54 call vundle#begin(bundlepath) 54 call vundle#begin(bundlepath)
55 endfunc 55 endfunc

mercurial