Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressing tab should insert a tab #3

Open
swo opened this issue Mar 6, 2019 · 3 comments
Open

Pressing tab should insert a tab #3

swo opened this issue Mar 6, 2019 · 3 comments

Comments

@swo
Copy link

swo commented Mar 6, 2019

My .vimrc sets softtabstop=8, while vim-tsv sets tabstop=20. So if I open a .tsv file and press tab, I actually get some number of spaces rather than a literal tab.

I think the solution is as easy as adding set softtabstop=20 to ftplugin/tsv.vim. As per #1 , it might be nice if there is a way to set both softtabstop and tabstop at the same time if you do need to expand the visual column width while editing a particular tsv.

@pdurbin
Copy link
Owner

pdurbin commented Mar 6, 2019

@swo interesting. I don't appear to use softtabstop in my .vimrc: https://github.com/pdurbin/dotfiles/blob/daf7fd6b112c1c82f7d9685bedf174627e23f487/.vimrc

I don't know what softtabstop is for but I'm reading about it at https://vi.stackexchange.com/questions/4244/what-is-softtabstop-used-for

Maybe I could try your solution and see if it breaks anything for me.

@swo
Copy link
Author

swo commented Mar 15, 2019 via email

@pdurbin
Copy link
Owner

pdurbin commented Mar 15, 2019

@swo if not using softtabstop is an ok workaround for you I'm fine with you closing this issue. I'm just glad to have my first user beside me. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants