Change Cmd-Space to Ctrl-Space for autocomplete

This commit is contained in:
Yan Pritzker 2015-06-02 19:03:09 -05:00
parent d316096428
commit d74ab05613
3 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,8 @@
2014-06-01
==================
* Change Cmd-Space to Ctrl-Space for vim autocomplete so it doesn't conflict with osx spotlight by default, and so there are no additional steps to install.
2014-02-15
==================

View File

@ -54,9 +54,6 @@ YADR will install Solarized colorschemes into your iTerm. Go to Profiles => Colo
#### Remap caps-lock to escape with PCKeyboardHack](http://pqrs.org/macosx/keyremap4macbook/pckeyboardhack.html)
The escape key is the single most used key in vim. Old keyboards used to have Escape where Tab is today. Apple keyboards are the worst with their tiny Esc keys. But all this is fixed by remapping Caps to Escape. If you're hitting a small target in the corner, you are slowing yourself down considerably, and probably damaging your hands with repetitive strain injuries.
#### Remap your Alfred or Spotlight to `Ctrl-Cmd-Space`
This is so that you can use `Cmd-Space` to autocomplete in vim. This is much more friendly for your fingers than `Ctrl-n`.
#### Set up a system wide hotkey for iTerm (Keys=>Hotkey)
Recommended Cmd-Escape, which is really Cmd-Capslock.
@ -211,7 +208,7 @@ of plugins above to learn more.
#### Better keystrokes for common editing commands
* Cmd-Space to autocomplete. Tab for snipmate snippets.
* Ctrl-Space to autocomplete. Tab for snipmate snippets.
* `,#` `,"` `,'` `,]` `,)` `,}` to surround a word in these common wrappers. the # does #{ruby interpolation}. works in visual mode (thanks @cj). Normally these are done with something like `ysw#`
* `Cmd-'`, `Cmd-"`, `Cmd-]`, `Cmd-)`, etc to change content inside those surrounding marks. You don't have to be inside them (`Alt` in Linux)
* `,.` to go to last edit location (same as `'.`) because the apostrophe is hard on the pinky

View File

@ -12,8 +12,8 @@ let g:neocomplete#max_list = 5
" Set minimum syntax keyword length.
let g:neocomplete#auto_completion_start_length = 3
" Map standard Ctrl-N completion to Cmd-Space
inoremap <D-Space> <C-n>
" Map standard Ctrl-N completion to Ctrl-Space
inoremap <C-Space> <C-n>
" This makes sure we use neocomplete completefunc instead of
" the one in rails.vim, otherwise this plugin will crap out.