Commits

Stefan Scherfke  committed a6942c9

Fixed ,w and added copy/paste shortcuts for Linux.

  • Participants
  • Parent commits 8808a55

Comments (0)

Files changed (1)

   elseif has('gui_gtk2')
     set guifont=DejaVu\ Sans\ Mono\ 9,Monospace\ 9
     set lines=62
+
+    " copy/paste
+    vnoremap <special> <C-x> "+x
+    vnoremap <special> <C-c> "+y
+    cnoremap <special> <C-c> <C-y>
+    nnoremap <special> <C-v> "+gP
+    inoremap <special> <C-v> <C-R>+
+    cnoremap <special> <C-v> <C-R>+
+
   endif
 endif
 
 vmap <leader>q gq
 
 " Toggle wrap
-nnoremap <leader>w :set wrap!
+nnoremap <leader>w :set wrap!<cr>
 
 " Clear search term (remove highlighting)
 nmap <silent> <leader><space> :noh<cr>