I enter vi in ​​the terminal, and the program opens in the terminal window. How to open it in a separate window?

  • Many different correct answers. If they do not satisfy to the end, then it is necessary to describe the working conditions in more detail: terminal in linux / windows, whether xserver is running, with what parameters vim is built (command output: ve), etc. With the most favorable combination of conditions, just enter the command :gui or :gvim - alexlz

3 answers 3

vim (vi) - console editor, to open it in a separate window, you need to install a graphical shell for it. Under Gnome, this will be vim-gnome, as I will not be able to say under other GUIs, but look towards the gvim package.

    Run the terminal emulator in the background, set vi file in its parameters. Linux is not at hand, but something like

     xterm -e vi my-file & 
    • The answer implies working under XWindows in the xterm window. Other options offhand: ssh (telnet, etc., we don’t recall) in the console (without xserver), windows ssh (eg putty). - alexlz

    Wim can only be opened in the terminal. Alternatively, you can go to another terminal and open it there.