XVim2
XVim2 copied to clipboard
Shiftwidth fixed at 4
Hi, I'm working on a project where the shiftwidth needs to be at 2. I've updated the text editing settings in Xcode preferences to reflect this, but when I do ">>" or "<<" it still shifts by 4. How can I get it to shift by 2 instead? Thanks.
The feature is not supported.
I see, well put in a big +1 for me. It would make editing files with a shiftwidth of 2, etc. much easier.
The immediate work around is below.
:%s/ / /gc
The former space is 4 pieces. The latter one is 2. Apple should provide vim.plugin. Like Android Studio.
@externvoid that will not do what i'm trying to achieve. but the following code is easy to edit:
// TODO: These values should be taken from IDEFileTextSetting.
- (NSUInteger)xvim_indentWidth { return 4; }
- (NSUInteger)xvim_tabWidth { return 4; }
@michaeleisel I followed your advice, finding the specific place at NSTextStorage+VimOperation.m
It's working as what I desire.