LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2004, 04:25 AM   #1
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
vim question


really sorry. Have a short memory.

if I use vim to open 2 file: "vim file1 file2"

how do I switch between the 2 file
 
Old 09-10-2004, 04:30 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,

one possibility is..

Code:
:bnext
will do the trick

regards

slackie1000
 
Old 09-10-2004, 10:04 AM   #3
dannybpng
Member
 
Registered: Sep 2003
Location: USA
Distribution: Fedora 23
Posts: 71

Rep: Reputation: 19
Another way is like this

:n
Moves to the next file

:wn
Writes out the current file and moves to the next

<Ctrl-6> or <Ctrl-^>
Toggles back and forth between the two files

Dan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim and vi editing question penguin_powered Programming 5 07-24-2005 05:43 PM
quick vim question mbegovic Linux - Software 2 05-14-2004 12:23 PM
Question about VIM configuration ICO Linux - General 4 01-06-2004 07:41 PM
Question about vim and gcc. sharathkv Linux - Newbie 1 07-31-2003 06:09 AM
vi/vim question kiley_rodgers Slackware 1 06-18-2003 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration