How to change default indent in macvim?

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.


Open your $HOME/.vimrc file in MacVim,

:edit $MYVIMRC

write the following lines,

set tabstop=2
set shiftwidth=2

and save.

:wq

Tags:

Macvim