Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

unless you prefer tabs, you can add:

set expandtab

to your .vimrc and then vim will magically insert spaces (according to your tabstop/shiftwidth) instead of real tabs.

:retab will turn all tabs into spaces for a file that already has tabs in it.



thanks! "Vim contains every features you could possibly imagine, and then some. Even when taking this law into account" - 10ren's Law




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: