Thursday, September 24, 2015

RE: visincr and mswin not compatible

jordi_frei wrote:
> The thing is that, I really need to use cntrl-C, cntrl-V

Do not source mwwin.vim and do not use 'behave mswin'.
Instead, put the following in your _vimrc.

" Select all, cut, copy, paste.
nnoremap <C-A> ggVG
vnoremap <C-X> "+x
vnoremap <C-C> "+y
nnoremap <C-V> "+gP
cnoremap <C-V> <C-R>+
exe 'inoremap <script> <C-V>' paste#paste_cmd['i']
exe 'vnoremap <script> <C-V>' paste#paste_cmd['v']

" Save.
nnoremap <C-S> :update<CR>

" Increment/decrement (tip 30).
nnoremap <A-a> <C-a>
nnoremap <A-x> <C-x>

Save/Increment/decrement are useful, so included above.

Use ':help autoload' to see how paste#paste_cmd works. It
invokes vim74/autoload/paste.vim for the insert mode and
visual mode mappings.

John

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: