.vim/autoload/vimrc.vim

changeset 631
8e07c29f2672
parent 619
b1cd1ee191be
child 632
9a87ce42aa3c
equal deleted inserted replaced
630:e5aec7abb8b5 631:8e07c29f2672
1 func! vimrc#CommandAlias(abbrev, expand) abort
2 execute printf('cnoreabbrev <expr> %s (getcmdtype()==":" && getcmdpos()==1) ? "%s" : "%s"', a:abbrev, a:expand, a:abbrev)
3 endfunc
1 4
2 func! vimrc#AutoFmtToggle() abort 5 func! vimrc#AutoFmtToggle() abort
3 if &formatoptions =~ 'a' 6 if &formatoptions =~ 'a'
4 setl fo-=a | echo '-a' 7 setl fo-=a | echo '-a'
5 else 8 else

mercurial