LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   open another file while you open a file on vim (https://www.linuxquestions.org/questions/linux-software-2/open-another-file-while-you-open-a-file-on-vim-4175510211/)

moreroz 07-05-2014 10:30 AM

open another file while you open a file on vim
 
I open a file on vim. Now I want to open another file. how I can do that?
For example I inter vim 1.c and now I have 1.c . but now I want to open 2.c. How I can do that? also how I can switch between them?

jdkaye 07-05-2014 12:59 PM

One way is to open another terminal and run vim on that one as well. You tell us nothing about the system you're running so I can't be any more specific than that.
jdk

moreroz 07-05-2014 01:21 PM

Thanks. I use ubuntu 14.04. and I want to have something like tabs.

frankbell 07-05-2014 08:16 PM

This might help: http://www.cyberciti.biz/faq/howto-s...ux-vim-editor/

I haven't done it; I'm working to improve my vim skills, but haven't gotten this far yet.

jdkaye 07-06-2014 12:04 AM

The KDE terminal called Konsole uses tabs. Just type vim in the terminal then open a new tab in the same terminal and type it again. Doesn't the Ubuntu DE terminal have a similar feature?
jdk

TobiSGD 07-06-2014 08:51 PM

http://vim.wikia.com/wiki/Using_tab_pages


All times are GMT -5. The time now is 07:06 PM.