title: Replacing Notepad++ for Vim (I use PHP). What do I have to know?
body: <p>I was using Notepad++ under Windows for a long time. But I'm having too many troubles with the configuration. It suddenly changes my indentation config every now and then. So I decided to change my editor to Vim. As you may guess, it's a big change :P so I'd like to know what do I need to have in mind knowing I develop in PHP. I'd like to use everytime UTF-8 without BOM, even if the original file is not using this encoding. By now I've figured out this in my <code>_vimrc</code> (BTW, is this the right place to do it?):</p>
  
  <pre><code>set smartindent
  set tabstop=4
  set shiftwidth=4
  set expandtab
  set number
  
  setglobal nobomb
  setglobal fileencodings=utf-8,usc-bom,latin1
  setglobal encoding=utf-8
  </code></pre>
  
  <p>Do I have to config these options in the file <code>_vimrc</code> so everytime I open Vim it takes into account these configurations? what other configs should I use? I want 4 spaces instead of tabs and I've found that the first 4 options do that.</p>