3 ms·
Thank you for this. I've been typing out: :set tabstop=4 :set shiftwidth=4 :set expandtab Like a pleb for years. What's sts?
by kjeetgill 8y ago
Thank you for this. I've been typing out:
:set tabstop=4
:set shiftwidth=4
:set expandtab
Like a pleb for years. What's sts?
- yorwba 8y ago:help 'sts Number of spaces that a <Tab> counts for while performing editing operations, like inserting a <Tab> or using <BS>. It "feels" like <Tab>s are being inserted, while in fact a mix of spaces and <Tab>s is used. This is useful to keep the 'ts' setting at its standard value of 8, while being able to edit like it is set to 'sts'. However, commands like "x" still work on the actual characters. When 'sts' is zero, this feature is off. You can also abbreviate expandtab to et.
- gjvc 8y agoPut them in your .vimrc, and put your dotfiles in git. Hint: searching GitHub for "dotfiles" can be a fun and productive way to spend a Friday afternoon :-)
- kjeetgill 8y agoI mean locally yes, but I'm poking around on servers frequently enough and writing python there (Hey, I'm no saint) that it gets committed to memory eventually.