LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vim :gui trick and undo-trick (https://www.linuxquestions.org/questions/linux-software-2/vim-gui-trick-and-undo-trick-583459/)

dazdaz 09-09-2007 05:01 PM

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

raskin 09-10-2007 02:00 PM

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.

AlucardZero 09-10-2007 02:13 PM

Google doesn't index punctuation, which is very annoying.

dazdaz 09-10-2007 02:45 PM

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.


All times are GMT -5. The time now is 08:13 PM.