vimrc - vim indentation problem, it is all aligned in vim mode, but it is messed up in github
怪我咯
怪我咯 2017-05-16 16:34:08
0
1
635

This is .vimrc in vim mode, it seems that the comments are all aligned

After looking at github, vimrc is a mess.

The same is true when opening with sublime, but after Sublime sets tab size =2, it becomes normal again.

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
小葫芦

Because your file uses tabs instead of spaces for indentation, just replace it:

sed -i '' -E "s/$(echo -n -e "\t")/  /g" .vimrc

In addition, you can configure vim to use space instead of tab for indentation:

set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template