Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 54

Questions about the creation, usage and debugging of filetype plugins.

1 vote

How to search standard library files in languages without include expressions?

Include search is done in the current and included files. If your language doesn't let you explicitly include a file, then all Vim can do is search in the current file, which makes using include searc …
romainl's user avatar
  • 42.3k
2 votes

ftdetect, ftplugin not working as advertised -- what am I missing?

The other is to simply put the desired commands in a dedicated "ftplugin": " in ftplugin/test.vim setlocal expandtab where ftplugin/test.vim is sourced automatically by Vim when the FileType event is … ftplugin/test.vim is sourced. A number of autocommands are added for the FileType event with value test. …
romainl's user avatar
  • 42.3k
0 votes

Setting variables in file in ftplugin directory

Filetype plugins, whether they are from $VIMRUNTIME/ftplugin, ~/.vim/ftplugin, or ~/.vim/after/ftplugin, are sourced before any syntax script. … The "options" you listed in your question are all syntax-related so it should be safe to relocate them in ~/.vim/after/ftplugin. …
romainl's user avatar
  • 42.3k
1 vote

What options shall be set for loading ftplugins?

Your question really boils down to: Why is my custom command :MyCommand working fine when I start Vim normally and not when I start Vim with -u NONE? A question that will be difficult to answer with …
romainl's user avatar
  • 42.3k