Search Results
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 |
Questions about the creation, usage and debugging of filetype plugins.
1
vote
Accepted
Execute normal command after opening email in Mutt
It seems your experience with adding a normal iABCDE to the .vim/ftplugin/mail.vim and seeing it twice really suggests this file is being sourced more than once. … echomsg expand('<stack>')
Though the fact that this is only happening with .vim/ftplugin/mail.vim but not with .vim/after/ftplugin/mail.vim suggests that something else is afoot. …
0
votes
Where should I put filetype specific options for indentation?
It's actually debatable whether the specific settings you have belong in indent/ or ftplugin/ though. … See examples under $VIMRUNTIME/ftplugin/ and $VIMRUNTIME/indent/ to get inspiration on those. …
4
votes
Accepted
Neovim automatically run command when opening a filetype from ftplugin file
ftplugin/markdown.vim ftplugin/markdown_*.vim ftplugin/markdown/*.vim
So you can simply add a command, such as Goyo, to enable Goyo, inside such an ftplugin script. … under ~/.config/nvim/after/ftplugin rather than ~/.config/nvim/ftplugin. …
1
vote
Accepted
Why won't vim source my ftplugin_after.vim file?
I have a file called ~/.config/nvim/after/ftplugin_after.vim
The correct path you're looking for is actually:
~/.config/nvim/ftplugin/filetype.vim
Note that ftplugin needs to be a directory, and that … The culprit was /usr/share/nvim/runtime/ftplugin/
Yes, but which script inside ftplugin/? …