Tarek Saied
Tarek Saied

Reputation: 6626

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

Upvotes: 0

Views: 451

Answers (2)

clt60
clt60

Reputation: 63974

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.

Upvotes: 0

Vivek Pandey
Vivek Pandey

Reputation: 3555

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

Upvotes: 1

Related Questions