您的位置:首页 > 其它

Tabs and spaces in Vim

2010-07-20 06:16 369 查看
: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