How can I manually enter tabs (possibly .vimrc file)?
问题 Whenever I try to enter tabs in vim, it just enters 4 spaces. I am currently writing a makefile so I need to be able to enter literal tabs. Any ideas? 回答1: Remove set expandtab from (or use set noexpandtab in) your .vimrc. To insert a literal tab when expandtab is on, you can use Ctrl+v Tab (or Ctrl+q Tab on windows with the default settings) 回答2: in your .vimrc you want set noexpandtab 回答3: To the best of my knowledge, expandtab is automatically reset for Makefile :verbose set et? shows