title: Ctrl+Space for omni and keyword completion in vim
body: <p>I Want to use <kbd>Ctrl</kbd>+<kbd>Space</kbd> for omni-completion (and keyword completion if there is no omni-completion) in vim. I've tried this which I found somewhere on the web:</p>
  
  <pre><code>inoremap &lt;expr&gt; &lt;c-space&gt; pumvisible() ? "\&lt;C-n&gt;" : "\&lt;C-x&gt;\&lt;C-o&gt;\&lt;C-n&gt;\&lt;C-p&gt;\&lt;C-r&gt;=pumvisible() ? \"\\&lt;Down&gt;\" : \"\\&lt;CR&gt;\""
  </code></pre>
  
  <p>however it's not working. Anyone who is using <kbd>Ctrl</kbd>+<kbd>Space</kbd> for this too who can show me the correct way (which works) to do it?</p>
  
  <p>Worth noting is that it needs to work in the terminal version of vim NOT gvim.</p>