You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tab settings are handled ok-ish by the default plugins. Remove 'global' settings. I'd really like to use expandtab, obviously. Consider shiftround as well. And don't forget shiftwidth (tabstop=8 always)
Filetype autocommands can actually be moved to /.vim/ftplugin/<type>.vim to set local options and use <localleader> for mappings.
Once 'global' settings are removed, keep an eye out for changes that need to be made and add them.
Plugin files are used for defining file-dependent settings.
Basically, what I want to do is eschew settings that are too global for different filetypes, move my personal prefs into filetype plugins, and then rely on the defaults until I decide I need to change something.
⚠️ 💥 This will likely require a :retab of all files! ❗️❗️
The text was updated successfully, but these errors were encountered:
This is a lengthy one.
It comes down to about 3 things:
expandtab
, obviously. Considershiftround
as well. And don't forgetshiftwidth
(tabstop=8
always)/.vim/ftplugin/<type>.vim
to setlocal
options and use<localleader>
for mappings.Plugin files are used for defining file-dependent settings.
Basically, what I want to do is eschew settings that are too global for different filetypes, move my personal prefs into filetype plugins, and then rely on the defaults until I decide I need to change something.
:retab
of all files! ❗️❗️The text was updated successfully, but these errors were encountered: