LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2002, 07:04 AM   #1
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
editing two files in vim


Hi, I want to edit to files at the same time using vim.
First I opend one file "es.cpp". Then, at the vim prompt I did "sn es.h" which split my window and I could edit es.h in the frame above es.cpp.
Now my question is, how do I edit es.cpp without closing es.h. That is, how to I switch frames.
I hope i'm being clear. I did "man vim" but it didn't give me an awnser. I did "vimtutor" but did'nt get any wiser there. At the vim prompt I gave the command "sn" and "sN", but it kept saying there was only one file to edit.
I would like some help please.
 
Old 12-28-2002, 07:43 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
CTL+W CTL+R, or inside vim/gvim type ":help window-moving".
 
Old 12-28-2002, 08:56 AM   #3
qanopus
Senior Member
 
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Original Poster
Rep: Reputation: 45
Thanks
 
  


Reply



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
VIM: editing files via ftp robertmarkbram Linux - Software 2 10-17-2004 01:41 AM
multiple files in VIM james.farrow Linux - Newbie 3 07-09-2004 05:46 AM
How to shift files when using VIM? ICO Linux - General 2 10-21-2003 03:25 PM
Vim editing newbie needs help! andym Linux - Software 1 04-16-2003 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:12 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
Open Source Consulting | Domain Registration