I am learning to configure the macvim.
Now my tab indent is 4 character, I want to change it to 2. What should I add to th开发者_如何学Pythone macvim configure file?
Is there any beginner guide for me to learn configure mac vim?
Open your $HOME/.vimrc file in MacVim,
:edit $MYVIMRC
write the following lines,
set tabstop=2
set shiftwidth=2
and save.
:wq
As Kazuki Sakamoto said above, you need to edit your $HOME/.vimrc file. What you also need to do is make sure that your $HOME/.gvimrc file has these same settings. I use the janus setup with macvim and the only way I could get it to work was to add those lines to that file as well. Having them in both files should ensure that whether you're using vim in the terminal or macvim, the tab settings will be the same.
精彩评论