Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

changing tabstop has no effect #88

Closed
linuxfreakus opened this Issue · 10 comments

7 participants

@linuxfreakus

in my .vimrc.local

set shiftwidth=3
set tabstop=3
set softtabstop=3

But when I hit tab, it still uses 4 spaces. The values are set, and set tabstop reports 3 but something else must be overriding it.

@slajax

I can confirm this as well only I edited the values in .vimrc directly.

@linuxfreakus

I eventually realized it was because of the way it saves the settings for each buffer you open. If you delete all the buffer directory contents and then try it, it should work as expected using the .vimrc.local

@slajax

@linuxfreakus where is the buffer directory?

@linuxfreakus

there are:

.vimbackup
.vimswap
.vimundo
.vimviews

I believe the .vimviews was the one which I deleted (it will be recreated when you start editing files again). It stores things like the last position in the file, etc..

@slajax

Awesome it worked.

You have to search for tabstop and shiftwidth in .vimrc, change them, remove .viewviews/* and it's fixed.

Good find @linuxfreakus

@hevets

Nice find!! this was driving me absolutely crazy :D

@msutherl

I've been wracking my brain trying to figure out why I could not get Python files to obey my tabstop settings and it turns out that it's because the python-mode plugin enforces PEP8 indenting. :h python-mode to figure out how to turn that off.

Ended up leaving it on in the end.

@malicustommade

+1, I hit this too.

@ariunbayar

+1, ~/.vimview/ was the issue for me. And thank you for the incredible setup!

@cmcc-terradatum

+1 this was very helpful to see in context. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.