LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-13-2009, 12:41 PM   #1
iDragoon
LQ Newbie
 
Registered: May 2009
Posts: 4

Rep: Reputation: 0
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
 
Old 05-13-2009, 02:27 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
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 02:31 PM.
 
Old 05-14-2009, 08:56 AM   #3
nilathinesh
Member
 
Registered: Nov 2006
Distribution: Fedora 7 & 9, Ubuntu
Posts: 41

Rep: Reputation: 15
simple Shift+Insert is working in my case !! try
 
Old 05-15-2009, 09:25 AM   #4
iDragoon
LQ Newbie
 
Registered: May 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nilathinesh View Post
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.
 
Old 05-15-2009, 11:46 AM   #5
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Glad to help
 
  


Reply

Tags
cp, paste, vim



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
VIM Users: Do you use VIM via console or gui? JMJ_coder Linux - General 48 04-16-2008 03:12 AM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 01:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM
Vim Spell Check Inside Tags? Optimistic Linux - Software 1 04-15-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration