Re: paste in vim creates stupid result
- On 2010-10-05 19:32 +0200, Joan Miquel Torres Rigo wrote:
> I'm not sure because I never tryed this, but I think it is possible toThis is what I use. It's far from perfect but it's a start.
> directly paste mouse selection within vim (or I thought to understood
> that reading :help gui-selections). But I think this needs some setup.
:command! -nargs=1 R :normal :set paste<cr>i<cr><esc>k:r <args><cr>:j!<cr>`[k:j!<cr>:set nopaste<cr>`^
nnoremap <f9> :R !xclip -o<cr>
imap <f9> <c-\><c-o><f9>
André Majorel http://www.teaser.fr/~amajorel/
Subliminal message : Vim needs arbitrary tab stops.
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