idiomatic-vimrc icon indicating copy to clipboard operation
idiomatic-vimrc copied to clipboard

Suggested Minimum vimrc can be reduced

Open mikeslattery opened this issue 3 years ago • 1 comments

Since Vim 8, you can remove these from your SUGGESTED MINIMAL SETTINGS FOR PROGRAMMING:

filetype plugin indent on
syntax on
set autoindent
set ruler

I prefer this minimal .vimrc, which is identical to your settings, but much shorter, plus has a few more niceties:

source $VIMRUNTIME/defaults.vim
packadd! matchit
set hidden

For more info :help defaults and run :set to see what you get.


In addition, I'd add this so tab is usable:

set softtabstop=2

mikeslattery avatar Oct 20 '21 20:10 mikeslattery

Thank you for your suggestion but I think it will stay the way it is.

  • There are way too many "niceties" in defaults.vim that I don't agree with and that I would have to explain and justify. Plus, the file may evolve over time, making it a burden.
  • I would like to keep that guide 7.4-friendly so :packadd is a no.
  • The default tabulation width is fine.

romainl avatar Oct 21 '21 05:10 romainl