Permalink
Browse files

Move some GUI-only mappings to gvimrc

  • Loading branch information...
1 parent c5f70f7 commit 0eea6cd141f2ef2d7b741ef0d13b1aac10f2b31f @amarshall committed Jul 14, 2012
Showing with 12 additions and 12 deletions.
  1. +10 −0 gvimrc
  2. +2 −12 vimrc
View
10 gvimrc
@@ -13,6 +13,12 @@ elseif(has("win32"))
endif
if(has("macunix"))
+ " Paste yanked text in command mode
+ cnoremap <D-C> <C-R>"
+
+ " Copy current file path to system pasteboard.
+ map <silent> <D-C> :let @* = expand("%")<CR>:echo "Copied: ".expand("%")<CR>
+
" Prev/next in quickfix file listing (e.g. search results)
map <M-D-Down> :cn<CR>
map <M-D-Up> :cp<CR>
@@ -24,6 +30,10 @@ if(has("macunix"))
" In insert mode, use Cmd-<CR> to jump to a new line in insert mode
imap <D-CR> <ESC>o
+ " CtrlP
+ map <D-N> :CtrlP<CR>
+ map <D-e> :CtrlPMRU<CR>
+
" NERDCommenter
map <D-/> <plug>NERDCommenterToggle
imap <D-/> <ESC><plug>NERDCommenterToggle i
View
14 vimrc
@@ -78,16 +78,7 @@ if(&t_Co > 2 || has("gui_running"))
endif
" Copy current file path to system pasteboard.
-if(has("macunix"))
- map <silent> <D-C> :let @* = expand("%")<CR>:echo "Copied: ".expand("%")<CR>
-elseif(has("unix") || has("win32"))
- map <silent> <C-C> :let @* = expand("%")<CR>:echo "Copied: ".expand("%")<CR>
-endif
-
-" Paste yanked text in command mode
-if(has("macunix"))
- cnoremap <D-C> <C-R>"
-endif
+map <silent> <C-C> :let @* = expand("%")<CR>:echo "Copied: ".expand("%")<CR>
" Toggle spell check
map <leader>ss :setlocal spell!<cr>
@@ -106,9 +97,8 @@ vmap <s-tab> <gv
let g:ctrlp_max_height=20
let g:ctrlp_match_window_reversed=0
let g:ctrlp_use_caching=0
-map <D-N> :CtrlP<CR>
+map <C-P> :CtrlPMRU<CR>
map <leader>b :CtrlPBuffer<CR>
-map <D-e> :CtrlPBuffer<CR>
map <leader>e :e#<CR>
" Indent Guides

0 comments on commit 0eea6cd

Please sign in to comment.