title: Disable autoindent in vim
body: <p>I use vim since almost 20 years and recently someone told me about the usage of = key for indenting a block of code. Sometimes I try a new vim key but stop using it because it isn't doing exactly what I want or I just don't need the feature. But in this case I find its a nice feature.</p>
  
  <p>So I downloaded vim script 1120 (PHP-correct-Indenting) and installed it. My .vimrc contains:</p>
  
  <pre><code>filetype indent on
  set smartindent
  </code></pre>
  
  <p>Now I can use = to indent a visually marked code block.</p>
  
  <p>But I do NOT want vim to automatically indent code while I am typing. This is just irritating me as I am usually doing indentation myself and I am very much used to it ...</p>
  
  <p>So how can I stop vim from automatically indenting my code while typing but can still continue to use = for indenting a visually marked block of text.</p>
  
  <p>PS: Use hjkl for moving around in vim. It will make you about 1.5 times faster :)</p>
  
  <p>My complete vimrc:</p>
  
  <pre><code>syntax on
  
  set tabstop=3
  set shiftwidth=3
  
  execute pathogen#infect()
  
  filetype indent on
  set smartindent 
  </code></pre>
  
  <p>Commenting the last two lines stops autoindenting but also using "=" does not use the mentioned vim script anymore</p>