-
Notifications
You must be signed in to change notification settings - Fork 8
'comments' settings
glts edited this page May 3, 2013
·
8 revisions
The 'comments'
and 'commentstring'
settings extracted from Vim's runtime files.
I used this command to find the settings:
:vim /\%(let\=\s\+\&\|se\%[tlocal]\s\+\)com\%[ments]/ $VIMRUNTIME/**/*.vim
autoload/netrw.vim comments=
ftplugin/a2ps.vim comments=:# commentstring=#\\ %s
ftplugin/aap.vim comments=s:#\\ -,m:#\\ \\ ,e:#,n:#,fb:-
ftplugin/abaqus.vim comments=:** commentstring=**%s
ftplugin/ada.vim comments=O:--,:--\\ \\ commentstring=--\\ \\ %s
ftplugin/alsaconf.vim comments=:# commentstring=#\\ %s
ftplugin/arch.vim comments=:# commentstring=#\\ %s
ftplugin/bdf.vim comments=b:COMMENT commentstring=COMMENT\\ %s
ftplugin/bst.vim comments=:% commentstring=%\\ %s
ftplugin/c.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
ftplugin/calendar.vim comments=s1:/*,mb:*,ex:*/ commentstring&
ftplugin/cdrdaoconf.vim comments=:# commentstring=#\\ %s
ftplugin/changelog.vim comments=
ftplugin/cobol.vim comments=:* commentstring=\\ \\ \\ \\ \\ \\ *%s
ftplugin/conf.vim comments=:# commentstring=#\\ %s
ftplugin/context.vim comments=b:%D,b:%C,b:%M,:% commentstring=%\\ %s
ftplugin/crm.vim comments=:# commentstring=#\\ %s
ftplugin/cs.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
ftplugin/csh.vim commentstring=#%s
ftplugin/css.vim comments=s1:/*,mb:*,ex:*/ commentstring&
ftplugin/cucumber.vim comments=:# commentstring=#\\ %s
ftplugin/cvsrc.vim comments= commentstring=
ftplugin/debchangelog.vim comments=f:*
ftplugin/denyhosts.vim comments=:# commentstring=#\\ %s
ftplugin/dictconf.vim comments=:# commentstring=#\\ %s
ftplugin/dictdconf.vim comments=:# commentstring=#\\ %s
ftplugin/dircolors.vim comments=:# commentstring=#\\ %s
ftplugin/dosbatch.vim comments=b:rem,b:@rem,b:REM,b:@REM,:::
ftplugin/dosini.vim comments=:; commentstring=;\\ %s
ftplugin/dtd.vim comments=s:<!--,m:\\ \\ \\ \\ \\ ,e:--> commentstring=<!--%s-->
ftplugin/dtrace.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/ commentstring=/*%s*/
ftplugin/elinks.vim comments=:# commentstring=#\\ %s
ftplugin/eruby.vim commentstring=<%#%s%>
ftplugin/eterm.vim comments=:# commentstring=#\\ %s
ftplugin/fetchmail.vim comments=:# commentstring=#\\ %s
ftplugin/fortran.vim comments=:!,:*,:C commentstring=!%s
ftplugin/framescript.vim comments=s1:/*,mb:*,ex:*/,:// commentstring=/*\\ %s\\ */
ftplugin/fvwm.vim comments=:# commentstring=#\\ %s
ftplugin/gitconfig.vim comments=:#,:; commentstring=;\\ %s
ftplugin/gitrebase.vim comments=:# commentstring=#\\ %s
ftplugin/gpg.vim comments=:# commentstring=#\\ %s
ftplugin/group.vim comments= commentstring=
ftplugin/grub.vim comments=:# commentstring=#\\ %s
ftplugin/haml.vim comments= commentstring=-#\\ %s
ftplugin/hamster.vim comments=:# commentstring=#%s
ftplugin/haskell.vim comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\\ %s
ftplugin/hostconf.vim comments=:# commentstring=#\\ %s
ftplugin/hostsaccess.vim comments=:# commentstring=#\\ %s
ftplugin/html.vim comments=s:<!--,m:\\ \\ \\ \\ ,e:--> commentstring=<!--%s-->
ftplugin/indent.vim comments=s1:/*,mb:*,ex:*/ commentstring&
ftplugin/initex.vim comments=sO:%\\ -,mO:%\\ \\ ,eO:%%,:% commentstring=%%s
ftplugin/java.vim comments& comments^=sO:*\\ -,mO:*\\ \\ ,exO:*/ commentstring=//%s
ftplugin/javascript.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,:// commentstring=//%s
ftplugin/kconfig.vim comments=:# commentstring=#\\ %s
ftplugin/ld.vim comments=s1:/*,mb:*,ex:*/ commentstring=/*%s*/
ftplugin/lftp.vim comments=:# commentstring=#\\ %s
ftplugin/libao.vim comments=:# commentstring=#\\ %s
ftplugin/limits.vim comments=:# commentstring=#\\ %s
ftplugin/liquid.vim commentstring={%\\ comment\\ %}%s{%\\ endcomment\\ %}
ftplugin/lisp.vim comments=:; comments^=:;;;,:;;,sr:#\\|,mb:\\|,ex:\\|#
ftplugin/loginaccess.vim comments=:# commentstring=#\\ %s
ftplugin/logindefs.vim comments=:# commentstring=#\\ %s
ftplugin/lua.vim comments=:-- commentstring=--%s
ftplugin/m4.vim comments=:#,:dnl commentstring=dnl\\ %s
ftplugin/mailaliases.vim comments=:# commentstring=#\\ %s
ftplugin/mailcap.vim comments=:# commentstring=#\\ %s
ftplugin/make.vim comments=sO:#\\ -,mO:#\\ \\ ,b:# commentstring=#\\ %s
ftplugin/manconf.vim comments=:# commentstring=#\\ %s
ftplugin/markdown.vim comments=fb:*,fb:-,fb:+,n:> commentstring=>\\ %s
ftplugin/mf.vim comments=:% commentstring=%\\ %s
ftplugin/modconf.vim comments=:# commentstring=#\\ %s
ftplugin/mp.vim comments=:% commentstring=%\\ %s
ftplugin/mplayerconf.vim comments=:# commentstring=#\\ %s
ftplugin/mrxvtrc.vim comments=:!,:# commentstring=#\\ %s
ftplugin/msmessages.vim comments=:;,:;//,:;\\ //,s:;\\ /*\\ ,m:;\\ \\ *\\ ,e:;\\ \\ */ commentstring=;\\ //\\ %s
ftplugin/muttrc.vim comments=:# commentstring=#\\ %s
ftplugin/nanorc.vim comments=:# commentstring=#\\ %s
ftplugin/netrc.vim comments= commentstring=
ftplugin/nsis.vim comments=s1:/*,mb:*,ex:*/,b:#,:; commentstring=;\\ %s
ftplugin/occam.vim comments+=:--
ftplugin/pamconf.vim comments=:# commentstring=#\\ %s
ftplugin/passwd.vim comments= commentstring=
ftplugin/pdf.vim comments=:% commentstring=%%s
ftplugin/perl.vim comments=:# commentstring=#%s
ftplugin/perl6.vim comments=:# commentstring=#%s
ftplugin/php.vim commentstring=/*%s*/
ftplugin/pinfo.vim comments=:# commentstring=#\\ %s
ftplugin/postscr.vim comments=b:%
ftplugin/procmail.vim comments=:# commentstring=#\\ %s
ftplugin/prolog.vim comments=s1:/*,mb:*,ex:*/,:% commentstring=%\\ %s
ftplugin/protocols.vim comments=:# commentstring=#\\ %s
ftplugin/python.vim comments-=:% commentstring=#%s
ftplugin/quake.vim comments=:// commentstring=//\\ %s
ftplugin/racc.vim comments=s1:/*,mb:*,ex:*/,:# commentstring=#\\ %s
ftplugin/readline.vim comments=:# commentstring=#\\ %s
ftplugin/reva.vim comments=s1:/*,mb:*,ex:*/,:\\|,:\\\\
ftplugin/rnc.vim comments=:# commentstring=#\\ %s
ftplugin/rpl.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
ftplugin/rst.vim comments=fb:.. commentstring=..\\ %s
ftplugin/ruby.vim comments=:# commentstring=#\\ %s
ftplugin/sass.vim commentstring=//\\ %s
ftplugin/screen.vim comments=:# commentstring=#\\ %s
ftplugin/sensors.vim comments=:# commentstring=#\\ %s
ftplugin/services.vim comments=:# commentstring=#\\ %s
ftplugin/setserial.vim comments=:# commentstring=#\\ %s
ftplugin/sh.vim commentstring=#%s
ftplugin/sieve.vim comments=s1:/*,mb:*,ex:*/,:# commentstring=#\\ %s
ftplugin/slpconf.vim comments=:#,:; commentstring=#\\ %s
ftplugin/slpreg.vim comments=:#,:; commentstring=#\\ %s
ftplugin/slpspi.vim comments=:#,:; commentstring=#\\ %s
ftplugin/sql.vim comments=s1:/*,mb:*,ex:*/,:--,://
ftplugin/sshconfig.vim comments=:# commentstring=#\\ %s
ftplugin/sudoers.vim comments=:# commentstring=#\\ %s
ftplugin/sysctl.vim comments=:;,:# commentstring=#\\ %s
ftplugin/tcl.vim comments=:# commentstring=#%s
ftplugin/terminfo.vim comments=:# commentstring=#\\ %s
ftplugin/udevconf.vim comments=:# commentstring=#\\ %s
ftplugin/udevperm.vim comments=:# commentstring=#\\ %s
ftplugin/udevrules.vim comments=:# commentstring=#\\ %s
ftplugin/updatedb.vim comments=:# commentstring=#\\ %s
ftplugin/vb.vim comments=sr:'\\ -,mb:'\\ \\ ,el:'\\ \\ ,:'
ftplugin/verilog.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
ftplugin/vim.vim comments=sO:\\"\\ -,mO:\\"\\ \\ ,eO:\\"\\",:\\" commentstring=\\"%s
ftplugin/xdefaults.vim comments=s1:/*,mb:*,ex:*/,:! commentstring&
ftplugin/xf86conf.vim comments=:# commentstring=#\\ %s
ftplugin/xinetd.vim comments=:# commentstring=#\\ %s
ftplugin/xml.vim comments=s:<!--,m:\\ \\ \\ \\ \\ ,e:--> commentstring=<!--%s-->
ftplugin/xmodmap.vim comments=:! commentstring=!\\ %s
ftplugin/yaml.vim comments=:# commentstring=#\\ %s
ftplugin/zsh.vim comments=:# commentstring=#\\ %s
indent/eiffel.vim comments=:--
indent/ocaml.vim comments=sr:(*,mb:*,ex:*)
indent/php.vim comments=s1:/*,mb:*,ex:*/,://,:#
indent/sml.vim comments=sr:(*,mb:*,ex:*)
syntax/lpc.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
syntax/mma.vim commentstring='(*%s*)'
syntax/nasm.vim comments=:;
Here's the same thing again but with tab-separated fields.
autoload/netrw.vim comments=
ftplugin/a2ps.vim comments=:# commentstring=#\\ %s
ftplugin/aap.vim comments=s:#\\ -,m:#\\ \\ ,e:#,n:#,fb:-
ftplugin/abaqus.vim comments=:** commentstring=**%s
ftplugin/ada.vim comments=O:--,:--\\ \\ commentstring=--\\ \\ %s
ftplugin/alsaconf.vim comments=:# commentstring=#\\ %s
ftplugin/arch.vim comments=:# commentstring=#\\ %s
ftplugin/bdf.vim comments=b:COMMENT commentstring=COMMENT\\ %s
ftplugin/bst.vim comments=:% commentstring=%\\ %s
ftplugin/c.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
ftplugin/calendar.vim comments=s1:/*,mb:*,ex:*/ commentstring&
ftplugin/cdrdaoconf.vim comments=:# commentstring=#\\ %s
ftplugin/changelog.vim comments=
ftplugin/cobol.vim comments=:* commentstring=\\ \\ \\ \\ \\ \\ *%s
ftplugin/conf.vim comments=:# commentstring=#\\ %s
ftplugin/context.vim comments=b:%D,b:%C,b:%M,:% commentstring=%\\ %s
ftplugin/crm.vim comments=:# commentstring=#\\ %s
ftplugin/cs.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
ftplugin/csh.vim commentstring=#%s
ftplugin/css.vim comments=s1:/*,mb:*,ex:*/ commentstring&
ftplugin/cucumber.vim comments=:# commentstring=#\\ %s
ftplugin/cvsrc.vim comments= commentstring=
ftplugin/debchangelog.vim comments=f:*
ftplugin/denyhosts.vim comments=:# commentstring=#\\ %s
ftplugin/dictconf.vim comments=:# commentstring=#\\ %s
ftplugin/dictdconf.vim comments=:# commentstring=#\\ %s
ftplugin/dircolors.vim comments=:# commentstring=#\\ %s
ftplugin/dosbatch.vim comments=b:rem,b:@rem,b:REM,b:@REM,:::
ftplugin/dosini.vim comments=:; commentstring=;\\ %s
ftplugin/dtd.vim comments=s:<!--,m:\\ \\ \\ \\ \\ ,e:--> commentstring=<!--%s-->
ftplugin/dtrace.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/ commentstring=/*%s*/
ftplugin/elinks.vim comments=:# commentstring=#\\ %s
ftplugin/eruby.vim commentstring=<%#%s%>
ftplugin/eterm.vim comments=:# commentstring=#\\ %s
ftplugin/fetchmail.vim comments=:# commentstring=#\\ %s
ftplugin/fortran.vim comments=:!,:*,:C commentstring=!%s
ftplugin/framescript.vim comments=s1:/*,mb:*,ex:*/,:// commentstring=/*\\ %s\\ */
ftplugin/fvwm.vim comments=:# commentstring=#\\ %s
ftplugin/gitconfig.vim comments=:#,:; commentstring=;\\ %s
ftplugin/gitrebase.vim comments=:# commentstring=#\\ %s
ftplugin/gpg.vim comments=:# commentstring=#\\ %s
ftplugin/group.vim comments= commentstring=
ftplugin/grub.vim comments=:# commentstring=#\\ %s
ftplugin/haml.vim comments= commentstring=-#\\ %s
ftplugin/hamster.vim comments=:# commentstring=#%s
ftplugin/haskell.vim comments=s1fl:{-,mb:-,ex:-},:-- commentstring=--\\ %s
ftplugin/hostconf.vim comments=:# commentstring=#\\ %s
ftplugin/hostsaccess.vim comments=:# commentstring=#\\ %s
ftplugin/html.vim comments=s:<!--,m:\\ \\ \\ \\ ,e:--> commentstring=<!--%s-->
ftplugin/indent.vim comments=s1:/*,mb:*,ex:*/ commentstring&
ftplugin/initex.vim comments=sO:%\\ -,mO:%\\ \\ ,eO:%%,:% commentstring=%%s
ftplugin/java.vim comments& comments^=sO:*\\ -,mO:*\\ \\ ,exO:*/ commentstring=//%s
ftplugin/javascript.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,:// commentstring=//%s
ftplugin/kconfig.vim comments=:# commentstring=#\\ %s
ftplugin/ld.vim comments=s1:/*,mb:*,ex:*/ commentstring=/*%s*/
ftplugin/lftp.vim comments=:# commentstring=#\\ %s
ftplugin/libao.vim comments=:# commentstring=#\\ %s
ftplugin/limits.vim comments=:# commentstring=#\\ %s
ftplugin/liquid.vim commentstring={%\\ comment\\ %}%s{%\\ endcomment\\ %}
ftplugin/lisp.vim comments=:; comments^=:;;;,:;;,sr:#\\|,mb:\\|,ex:\\|#
ftplugin/loginaccess.vim comments=:# commentstring=#\\ %s
ftplugin/logindefs.vim comments=:# commentstring=#\\ %s
ftplugin/lua.vim comments=:-- commentstring=--%s
ftplugin/m4.vim comments=:#,:dnl commentstring=dnl\\ %s
ftplugin/mailaliases.vim comments=:# commentstring=#\\ %s
ftplugin/mailcap.vim comments=:# commentstring=#\\ %s
ftplugin/make.vim comments=sO:#\\ -,mO:#\\ \\ ,b:# commentstring=#\\ %s
ftplugin/manconf.vim comments=:# commentstring=#\\ %s
ftplugin/markdown.vim comments=fb:*,fb:-,fb:+,n:> commentstring=>\\ %s
ftplugin/mf.vim comments=:% commentstring=%\\ %s
ftplugin/modconf.vim comments=:# commentstring=#\\ %s
ftplugin/mp.vim comments=:% commentstring=%\\ %s
ftplugin/mplayerconf.vim comments=:# commentstring=#\\ %s
ftplugin/mrxvtrc.vim comments=:!,:# commentstring=#\\ %s
ftplugin/msmessages.vim comments=:;,:;//,:;\\ //,s:;\\ /*\\ ,m:;\\ \\ *\\ ,e:;\\ \\ */ commentstring=;\\ //\\ %s
ftplugin/muttrc.vim comments=:# commentstring=#\\ %s
ftplugin/nanorc.vim comments=:# commentstring=#\\ %s
ftplugin/netrc.vim comments= commentstring=
ftplugin/nsis.vim comments=s1:/*,mb:*,ex:*/,b:#,:; commentstring=;\\ %s
ftplugin/occam.vim comments+=:--
ftplugin/pamconf.vim comments=:# commentstring=#\\ %s
ftplugin/passwd.vim comments= commentstring=
ftplugin/pdf.vim comments=:% commentstring=%%s
ftplugin/perl.vim comments=:# commentstring=#%s
ftplugin/perl6.vim comments=:# commentstring=#%s
ftplugin/php.vim commentstring=/*%s*/
ftplugin/pinfo.vim comments=:# commentstring=#\\ %s
ftplugin/postscr.vim comments=b:%
ftplugin/procmail.vim comments=:# commentstring=#\\ %s
ftplugin/prolog.vim comments=s1:/*,mb:*,ex:*/,:% commentstring=%\\ %s
ftplugin/protocols.vim comments=:# commentstring=#\\ %s
ftplugin/python.vim comments-=:% commentstring=#%s
ftplugin/quake.vim comments=:// commentstring=//\\ %s
ftplugin/racc.vim comments=s1:/*,mb:*,ex:*/,:# commentstring=#\\ %s
ftplugin/readline.vim comments=:# commentstring=#\\ %s
ftplugin/reva.vim comments=s1:/*,mb:*,ex:*/,:\\|,:\\\\
ftplugin/rnc.vim comments=:# commentstring=#\\ %s
ftplugin/rpl.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
ftplugin/rst.vim comments=fb:.. commentstring=..\\ %s
ftplugin/ruby.vim comments=:# commentstring=#\\ %s
ftplugin/sass.vim commentstring=//\\ %s
ftplugin/screen.vim comments=:# commentstring=#\\ %s
ftplugin/sensors.vim comments=:# commentstring=#\\ %s
ftplugin/services.vim comments=:# commentstring=#\\ %s
ftplugin/setserial.vim comments=:# commentstring=#\\ %s
ftplugin/sh.vim commentstring=#%s
ftplugin/sieve.vim comments=s1:/*,mb:*,ex:*/,:# commentstring=#\\ %s
ftplugin/slpconf.vim comments=:#,:; commentstring=#\\ %s
ftplugin/slpreg.vim comments=:#,:; commentstring=#\\ %s
ftplugin/slpspi.vim comments=:#,:; commentstring=#\\ %s
ftplugin/sql.vim comments=s1:/*,mb:*,ex:*/,:--,://
ftplugin/sshconfig.vim comments=:# commentstring=#\\ %s
ftplugin/sudoers.vim comments=:# commentstring=#\\ %s
ftplugin/sysctl.vim comments=:;,:# commentstring=#\\ %s
ftplugin/tcl.vim comments=:# commentstring=#%s
ftplugin/terminfo.vim comments=:# commentstring=#\\ %s
ftplugin/udevconf.vim comments=:# commentstring=#\\ %s
ftplugin/udevperm.vim comments=:# commentstring=#\\ %s
ftplugin/udevrules.vim comments=:# commentstring=#\\ %s
ftplugin/updatedb.vim comments=:# commentstring=#\\ %s
ftplugin/vb.vim comments=sr:'\\ -,mb:'\\ \\ ,el:'\\ \\ ,:'
ftplugin/verilog.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
ftplugin/vim.vim comments=sO:\\"\\ -,mO:\\"\\ \\ ,eO:\\"\\",:\\" commentstring=\\"%s
ftplugin/xdefaults.vim comments=s1:/*,mb:*,ex:*/,:! commentstring&
ftplugin/xf86conf.vim comments=:# commentstring=#\\ %s
ftplugin/xinetd.vim comments=:# commentstring=#\\ %s
ftplugin/xml.vim comments=s:<!--,m:\\ \\ \\ \\ \\ ,e:--> commentstring=<!--%s-->
ftplugin/xmodmap.vim comments=:! commentstring=!\\ %s
ftplugin/yaml.vim comments=:# commentstring=#\\ %s
ftplugin/zsh.vim comments=:# commentstring=#\\ %s
indent/eiffel.vim comments=:--
indent/ocaml.vim comments=sr:(*,mb:*,ex:*)
indent/php.vim comments=s1:/*,mb:*,ex:*/,://,:#
indent/sml.vim comments=sr:(*,mb:*,ex:*)
syntax/lpc.vim comments=sO:*\\ -,mO:*\\ \\ ,exO:*/,s1:/*,mb:*,ex:*/,://
syntax/mma.vim commentstring='(*%s*)'
syntax/nasm.vim comments=:;