How to change Vim behaviour using single .vimrc
file (without ftplugin) in elegant way ?
What do I mean is ... if I run many commends for C/C++ file , e.g.:
set nu
set cin
set ai
set mouse=a
color elflord
and another bunch of commends for AsciiDoc files, e.g.:
set syntax=asciidoc
set nocin
set spell spl=en
Not mentioning about Python, LaTeX etc....
There is solution presented
https://stackoverflow.com/a/159065/544721
for putting autocommand
before every custom command.
Is there a nice way to group them for autocommand
without using ftplugin
- in order to keep everything in single .vimrc
file (better for moving around many machines, etc.) ?
Something equivalent to if
statement with brackets {}
?