Tabs and spaces in Vim

:set expandtab

"Inserting spaces with pressing tab key. If you want to input a real Tab key with this option

" Press Ctrl-V<Tab>

 

:set tabstop=4

" Setting the amount of spaces for the a tab hit. Here 4 space characters per tab

 

:set shiftwidth=4

"The number of space characters inserted for indentation when press tab.

阅读更多
文章标签: tabs vim input
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭