# HG changeset patch # User nanaya # Date 1441611986 -32400 # Node ID 562fff34974402953b146d29781deb6d1ca48a6a # Parent ee234e4c144dbf1ccc253025d61780a5bd9a5305 Default 4 spaces without tab. diff -r ee234e4c144d -r 562fff349744 rc/vimrc --- a/rc/vimrc Wed Aug 12 16:20:32 2015 +0900 +++ b/rc/vimrc Mon Sep 07 16:46:26 2015 +0900 @@ -10,7 +10,7 @@ set esckeys set noerrorbells -set softtabstop=2 tabstop=2 shiftwidth=2 expandtab +set softtabstop=4 tabstop=4 shiftwidth=4 expandtab set copyindent set title @@ -83,12 +83,12 @@ endfunction function In4() - set softtabstop=4 tabstop=4 shiftwidth=4 noexpandtab + set softtabstop=4 tabstop=4 shiftwidth=4 expandtab endfunction - if $EC_VIM_SPACING == "4" - call In4() - endif + function In4t() + set softtabstop=4 tabstop=4 shiftwidth=4 noexpandtab + endfunction " required by syntax file " reference: https://github.com/elzr/vim-json/blob/master/ftplugin/json.vim