Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-13-2009, 01:41 PM
|
#1
|
LQ Newbie
Registered: May 2009
Posts: 4
Rep:
|
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
|
|
|
05-13-2009, 03:27 PM
|
#2
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep:
|
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
Last edited by rweaver; 05-13-2009 at 03:31 PM.
|
|
|
05-14-2009, 09:56 AM
|
#3
|
Member
Registered: Nov 2006
Distribution: Fedora 7 & 9, Ubuntu
Posts: 41
Rep:
|
simple Shift+Insert is working in my case !! try
|
|
|
05-15-2009, 10:25 AM
|
#4
|
LQ Newbie
Registered: May 2009
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by nilathinesh
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.
|
|
|
05-15-2009, 12:46 PM
|
#5
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep:
|
Glad to help
|
|
|
All times are GMT -5. The time now is 08:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|