Re:Five lines I put in a blank .vimrc
by JoshTriplett on Sunday December 13, 2020 @05:22PM
(#25410994)
I switch between enough different projects with different coding styles that I have shortcuts to change between them:
This sets the default to 4-space indents, but lets me do :T to switch to tabs (and does so automatically for Linux and Git which use that style), or :S N to switch to N-space indents (and automatically switches HTML and TeX to 2-space indents).
[ Parent
| on HN ]
Re:Five lines I put in a blank .vimrc
by oftenwrong on Sunday December 13, 2020 @09:32PM
(#25412889)
I use vim-sleuth to auto-detect indentation settings.