LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Switching from vim to vim -g from inside vim (http://www.linuxquestions.org/questions/linux-software-2/switching-from-vim-to-vim-g-from-inside-vim-725747/)

iDragoon 05-13-2009 12:41 PM

Switching from vim to vim -g from inside vim
 
Hey Guys,

Could you please let me know if it's possible to switch from vim to vim -g on the same file once I have opened the file using vim ? ( apart from <ESC>:!vim -g <filename> ) ? I want to do this since it's easier to paste in vim -g using the mouse.

If it's not possible, could you please tell me how to paste from the windows clipboard to a vim ( not vim -g ) buffer on an xterm session ?

On vim -g, a simple middle click of the mouse suffices, whereas it doesn't on simple vim. Therefore I was wondering if it was possible to switch from vim to vim -g on the fly and back.

Thanks for your time,

iDragoon

rweaver 05-13-2009 02:27 PM

Try "+gP (works on my copy) "+p (others claim it works) to paste... or you could just use the version you prefer every time by changing the default or making an alias (/shortcut)

Could also take a look here http://vim.wikia.com/wiki/In_line_co...stem_clipboard

nilathinesh 05-14-2009 08:56 AM

simple Shift+Insert is working in my case !! try

iDragoon 05-15-2009 09:25 AM

Quote:

Originally Posted by nilathinesh (Post 3540554)
simple Shift+Insert is working in my case !! try

Shift+Insert pastes partial copied text in mine, not the full text that I copy or select.

+gP works better for me.

Thanks for your help.

rweaver 05-15-2009 11:46 AM

Glad to help :)


All times are GMT -5. The time now is 03:45 AM.