Permalink
Browse files

vim: change expand-region mapping

  • Loading branch information...
1 parent 8f4715c commit adaa37cfc67ecf907443046b4c60785199d807b7 @majutsushi committed Apr 6, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 vim/vimrc
View
@@ -1836,6 +1836,9 @@ nnoremap <leader>vb :edit ~/.etc/vim/vim/abbrevs.vim<CR>
" Control-Space for omnicomplete
imap <C-Space> <C-X><C-O>
+nmap <C-Space> <Plug>(expand_region_expand)
+xmap <C-Space> <Plug>(expand_region_expand)
+
" for popup-menu completion
" http://vim.wikia.com/wiki/Make_Vim_completion_popup_menu_work_just_like_in_an_IDE
inoremap <expr> <C-x><C-o> pumvisible() ? '<C-x><C-o>' : '<C-x><C-o><C-r>=pumvisible() ? "\<lt>Down>" : ""<CR>'

0 comments on commit adaa37c

Please sign in to comment.