LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 01: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, 03:27 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
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.
 
Old 05-14-2009, 09: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, 10: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, 12:46 PM   #5
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Glad to help
 
  


Reply

Tags
cp, paste, vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:26 PM
VIM Users: Do you use VIM via console or gui? JMJ_coder Linux - General 48 04-16-2008 04:12 AM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 02:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-18-2006 12:54 AM
Vim Spell Check Inside Tags? Optimistic Linux - Software 1 04-15-2005 03:36 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration