开发者

how i can make vim Auto-Indent like TextMate

I am using the gVim7.3 on Windows 7

how i can make vim Auto-Indent like TextMate 开发者_如何转开发Especially when i used snipMate

Sorry for my bad English Because it is not my native language


Not sure about TextMate or snipMate, but here is how we do it in VIM:

In your .vimrc file, have the following lines:

set smartindent
set tabstop=4
set shiftwidth=4
set expandtab


Assuming you have unpacked snipMate into your $HOME\vimfiles. If you not sure where is your $HOME, read pls the vim wiki. You can enter into vim these commands for help:

:version
:echo expand('~')
:echo $HOME
:echo $VIM
:echo $VIMRUNTIME

After unpacking you probably forgot edit your vimrc file. You must enter the

:filetype plugin on

command into your vimrc and restart your vim.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜