tinkering with someone's code 😇
noooo he used tabs! so if i press tab now, it doesn't work properly!!
#vimtrick
q: how to set tab = 4 spaces?
a: `:set tabstop=4spaces`, or better: `set tabstop=4 softtabstop=0 expandtab shiftwidth=4`
tinkering with someone's code 😇
noooo he used tabs! so if i press tab now, it doesn't work properly!!
#vimtrick
q: how to set tab = 4 spaces?
a: `:set tabstop=4spaces`, or better: `set tabstop=4 softtabstop=0 expandtab shiftwidth=4`
#vimtrick
q: what to do with code already written with tabs?
a: after setting the above, `:set retab`
#vimtrick
q: how to insert #html tags easily?
a: first `:imap <C-t> <></><Esc>5hdiwp3lpT>i`, then write ex.: div, press Ctrl+t and insert content
Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.