Loading ...
Sorry, an error occurred while loading the content.

Re: paste in vim creates stupid result

Expand Messages
  • Andre Majorel
    ... This is what I use. It s far from perfect but it s a start. ... nnoremap :R !xclip -o imap -- André Majorel
    Message 1 of 21 , Oct 5, 2010
      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 to
      > directly paste mouse selection within vim (or I thought to understood
      > that reading :help gui-selections). But I think this needs some setup.

      This is what I use. It's far from perfect but it's a start.

      :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
    Your message has been successfully submitted and would be delivered to recipients shortly.