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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-09-2007, 05:01 PM
|
#1
|
|
Member
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.3, 5.5, Fedora 15, Kubuntu 12.04, Solaris 10,8
Posts: 296
Rep:
|
vim :gui trick and undo-trick
So on a quiet Sunday evening whilst learning some new vim features, whilst editing a file in vi, you can type in
:gui
So that the file will be closed and opened up in gvim, which only works if your using X.
Is there a reverse vim command to close gvim and re-open the file in a terminal ? I have searched the documentation and so far cannot find it anywhere.
Also I don't understand why Google does'nt search for ':gui' and instead searched for 'gui' which slows down my searching for solutions, even if using the exact option :-)
Cheers
|
|
|
|
09-10-2007, 02:00 PM
|
#2
|
|
Senior Member
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893
Rep:
|
I think you can write it. But you will need to launch a new xterm with parameters like '-e' to launch vim. ':function' lets you define a function; see also ':command'.
Google ignores ':' because it has no database index on it.
|
|
|
|
09-10-2007, 02:13 PM
|
#3
|
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,474
|
Google doesn't index punctuation, which is very annoying.
|
|
|
|
09-10-2007, 02:45 PM
|
#4
|
|
Member
Registered: Aug 2003
Location: Europe
Distribution: RHEL 6.3, 5.5, Fedora 15, Kubuntu 12.04, Solaris 10,8
Posts: 296
Original Poster
Rep:
|
I think your right. I can go forwards, and load up the file into gvim but not the reverse. I can't ask gvim to close the file and load it up in vim on a terminal.
Thanks all anyway.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:29 PM.
|
|
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
|
|