Questions tagged [ftplugin]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
32 views

pluging value to override vimrc

in my ftplugin, I have code: if executable('fprettify') au BufWritePre <buffer> :silent %!fprettify --silent else :let choice=confirm("fprettify doesn't exists! Install ...
0
votes
1answer
20 views

Difference between adding “vim/after/ftplugin” vs “vim/ftplugin”

I'd like to configure Vim 8.2 on Ubuntu 18 so that when I open code in different programming languages, different settings load. Eg. indentation, color-theme, plugins etc. I found ftplugin to be the ...
0
votes
1answer
33 views

Organize plugins and .vimrc settings for different filetypes using ftplugins?

I'm new to vim (8.2) and have been learning how to set it up on my computer (Ubuntu 18) for the past few days. I'd like to configure VIM so that when I open code in different programming languages, ...
0
votes
1answer
24 views

Why are files in after/ftplugin/ run on every save, and can I work around it?

I have a variety of vimscripts for different filetypes in ~/.vim/after/ftplugin, e.g. text.vim, vim.vim, etc. These contain a variety of settings, mappings, etc. Only recently, I've noticed (not sure ...
0
votes
1answer
15 views

Highlight group in `.vim/after/ftplugin` not highlighting patterns

While highlight group in .vimrc highlights patterns just fine, highlight groups in .vim/after/ftplugin folder does not seem to do anything. Is it normal?
1
vote
1answer
22 views

Why do FileType autocommands not appear to work when using multiple filetypes?

Not everyone considers setting b:undo_ftplugin to be a "best practice" the way I do, but as far as I can tell, the behavior described in this question depends on it being set as part of the ...
0
votes
0answers
19 views

How to use bash aliases in ftplugin files? [duplicate]

I want to be able to compile and run C++ files directly from inside vim. I have a custom compilation alias gmm defined in ~/.bash_aliases. I do not want to copy it over to my ~/.vim/ftplugin/cpp.vim ...