neovim/runtime/ftplugin
Colin Caine e19234f391 man.vim: silence file call (#5509)
When a file is opened by nvim with ft=man already set, and
"has('vim_starting')", ftplugin/man.vim calls
'execute 'file man://'.ref', this causes nvim to display something like
this:

````
"<name of original file>" 977, 41017C
"man://foo(1)" [Not edited] 977 lines --0%--
Press ENTER or type command to continue
````

This is annoying, because nothing of note has actually happened.

Use cases why you might want to read a man page from a file:

`MANPAGER='bash -c "nvim -c \"set ft=man\" </dev/tty <(col -bx)"' man git`
`nvim -c 'set ft=man' <(man -P cat git)`
2016-10-20 08:35:48 +02:00
..
a2ps.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
aap.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
abap.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
abaqus.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
ada.vim Remove VMS remnants 2014-12-19 15:28:49 -05:00
alsaconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
ant.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
arch.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
art.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
aspvbs.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
automake.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
bdf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
bst.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
btm.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
bzl.vim vim-patch:60cce2f 2016-04-18 21:50:37 -07:00
c.vim man.vim #5249 2016-09-03 12:57:41 -04:00
calendar.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
cdrdaoconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
ch.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
changelog.vim vim-patch:d042dc8 2016-05-03 21:13:41 +02:00
clojure.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
cobol.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
conf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
config.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
context.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
cpp.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
crm.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
cs.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
csc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
csh.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
css.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
cucumber.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
cvsrc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
debchangelog.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
debcontrol.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
denyhosts.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
dictconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
dictdconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
diff.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
dircolors.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
docbk.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
dockerfile.vim vim-patch:6921742 2015-01-04 19:42:30 +01:00
dosbatch.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
dosini.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
dtd.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
dtrace.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
eiffel.vim vim-patch:f391327 2016-07-08 01:38:21 -04:00
elinks.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
erlang.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
eruby.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
eterm.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
falcon.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
fetchmail.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
flexwiki.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
fortran.vim vim-patch:256972a 2016-05-03 21:22:45 +02:00
framescript.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
fvwm.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
git.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
gitcommit.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
gitconfig.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
gitrebase.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
gitsendemail.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
go.vim vim-patch:1e8ebf8 2014-12-30 13:51:39 +01:00
gpg.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
gprof.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
group.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
grub.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
haml.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
hamster.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
haskell.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
help.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
hgcommit.vim vim-patch:acb4f22 2016-05-25 21:05:01 -04:00
hog.vim vim-patch:d7464be 2016-05-03 20:59:26 +02:00
hostconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
hostsaccess.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
html.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
htmldjango.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
indent.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
initex.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
ishd.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
j.vim vim-patch:60cce2f 2016-04-18 21:50:37 -07:00
java.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
javascript.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
jproperties.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
json.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
jsp.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
kconfig.vim vim-patch:f2571c6 2015-11-08 03:39:07 +01:00
kwt.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
ld.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
less.vim vim-patch:8feef4f #3444 2015-10-11 18:07:58 -04:00
lftp.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
libao.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
limits.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
liquid.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
lisp.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
logcheck.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
loginaccess.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
logindefs.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
logtalk.dict re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
logtalk.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
lprolog.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
lua.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
m4.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
mail.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
mailaliases.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
mailcap.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
make.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
man.vim man.vim: silence file call (#5509) 2016-10-20 08:35:48 +02:00
manconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
markdown.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
matlab.vim vim-patch:8feef4f #3444 2015-10-11 18:07:58 -04:00
mf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
modconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
mp.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
mplayerconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
mrxvtrc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
msmessages.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
muttrc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
nanorc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
netrc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
nsis.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
objc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
ocaml.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
occam.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
pamconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
pascal.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
passwd.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
pdf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
perl6.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
perl.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
php.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
pinfo.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
plaintex.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
postscr.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
procmail.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
prolog.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
protocols.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
pyrex.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
python.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
qf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
quake.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
r.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
racc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
readline.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
README.txt re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
registry.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
reva.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
rhelp.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rmd.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rnc.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
rnoweb.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rpl.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
rrst.vim vim-patch:77cdfd1 2016-07-08 01:43:36 -04:00
rst.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
ruby.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
sass.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
scheme.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
screen.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
scss.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
sensors.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
services.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
setserial.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
sgml.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
sh.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
shada.vim runtime: Add [ft]plugin/shada.vim files that automatically open .shada 2015-11-01 21:27:28 +03:00
sieve.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
slpconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
slpreg.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
slpspi.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
spec.vim vim-patch:f2571c 2016-04-11 09:23:31 -07:00
sql.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
sshconfig.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
sudoers.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
svg.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
sysctl.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
systemd.vim vim-patch:60cce2f 2016-04-18 21:50:37 -07:00
systemverilog.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
tcl.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
tcsh.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
terminfo.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
tex.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
text.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
treetop.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
tt2html.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
tutor.vim tutor: Update vim-tutor to 0.2.1 2015-11-28 10:59:21 +01:00
udevconf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
udevperm.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
udevrules.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
updatedb.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
vb.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
verilog.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
vhdl.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
vim.vim vim-patch:37c2403 2015-01-04 20:28:08 +01:00
vroom.vim vim-patch:1e8ebf8 2014-12-30 13:51:39 +01:00
xdefaults.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xf86conf.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xhtml.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xinetd.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xml.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xmodmap.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xs.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xsd.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
xslt.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
yaml.vim re-integrate runtime/ vim-patch:0 #938 2014-07-29 02:12:31 +00:00
zimbu.vim Remove VMS remnants 2014-12-19 15:28:49 -05:00
zsh.vim vim-patch:f2571c6 2015-11-08 03:39:07 +01:00

The ftplugin directory is for Vim plugin scripts that are only used for a
specific filetype.

All files ending in .vim in this directory and subdirectories will be sourced
by Vim when it detects the filetype that matches the name of the file or
subdirectory.
For example, these are all loaded for the "c" filetype:

	c.vim
	c_extra.vim
	c/settings.vim

Note that the "_" in "c_extra.vim" is required to separate the filetype name
from the following arbitrary name.

The filetype plugins are only loaded when the ":filetype plugin" command has
been used.

The default filetype plugin files contain settings that 95% of the users will
want to use.  They do not contain personal preferences, like the value of
'shiftwidth'.

If you want to do additional settings, or overrule the default filetype
plugin, you can create your own plugin file.  See ":help ftplugin" in Vim.