Linux - SoftwareThis 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.
Distribution: RHEL 6.0, 5.5, Fedora 15, Kubuntu 12.04, Solaris 10,8
Posts: 197
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 :-)
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.
Distribution: RHEL 6.0, 5.5, Fedora 15, Kubuntu 12.04, Solaris 10,8
Posts: 197
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.