title: How to use only tab (not space) in vim
body: <p>I prefer to use <code>tab</code> than <code>white space</code>(may be a little different from most of others)</p>
  
  <p>But I found, when I hit <code>Enter</code> at the end of line, it will add some <strong>white spaces</strong>, but not <strong>tab</strong>. So, I have to delete them and press <strong>tab</strong>.</p>
  
  <p>I want to know how to set vim as:</p>
  
  <ol>
  <li>use only <strong>tab</strong> to indent the lines</li>
  <li>a tab looks like 4-spaces, but actually is a tab</li>
  <li>when hit <code>enter</code> at the end of a line, the new line is started with only tabs</li>
  </ol>
  
  <p>I've googled for this for a while, but not found a good answer. Thank you in advance</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The answer @Alok has provided works well in most of cases. But I just found, sometimes, it depends on the file type. For example, if you are editing a <code>haml</code> file, and there is a <code>haml.vim</code> in your <code>vimfiles/indent/</code>, then all the tabs will be converted to <code>space</code>. So if you want it to be <code>tab</code> only, you should modify(or delete) the corresponding indent file.</p>