Problem statement :- Tab does not work with vim for me
Description :- I am using vim-awesome for plugin in vim. Now the tab does not work. My expectation is pressing should result in tab being inserted in my file
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
This sounds, as if the option
expandtab is set. In this case Vim inserts spaces instead of a tab character.
To check execute
set expandtab?. This will either print
expandtab ( Vim inserts spaces) or
noexpandtab (Vim will insert real tabs).
To get real tabs, you need to execute
:set noexpandtab or add it to your
So the question remains: Why is
To find the "guilty" part, restart Vim and execute
:verbose set expandtab?. This will echo the current state and print where is was last set.