LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 08:04 AM   #1
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
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, 08:43 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,688
Blog Entries: 54

Rep: Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955
CTL+W CTL+R, or inside vim/gvim type ":help window-moving".
 
Old 12-28-2002, 09:56 AM   #3
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Original Poster
Rep: Reputation: 45
Thanks
 
  


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


All times are GMT -5. The time now is 02:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration