LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vim : i wanna open several files using tabs at the same time (https://www.linuxquestions.org/questions/linux-software-2/vim-i-wanna-open-several-files-using-tabs-at-the-same-time-680156/)

cryincold 10-30-2008 11:03 PM

vim : i wanna open several files using tabs at the same time
 
i tried:

$ vim *.c

/////

this way, vim opens all .c files in the current dir, but it put all files other than one into backgroud buffers.

all i want is that all .c files r opened in seperate tabs.

i totally have no idea.

could any body give me a hand.

tku in advance.

best regards.

cryincold 10-30-2008 11:09 PM

i got it ~~~

vim -p *.c

wit_273 10-31-2008 01:27 AM

I did not know you could do this. This could be handy but how do you switch between the tabs?

cryincold 11-02-2008 08:25 PM

Quote:

Originally Posted by wit_273 (Post 3326911)
I did not know you could do this. This could be handy but how do you switch between the tabs?

Hi.

u could user commands such as: gt , :tabn , :tabp , :tablast, :tabfirst,
:tabN (N is a numerical number coded for tabs from 0, e.g.: tabm2 moves to the 3rd tab)


All times are GMT -5. The time now is 05:14 PM.