LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-20-2008, 11:55 PM   #1
wrapster
Member
 
Registered: May 2008
Posts: 155

Rep: Reputation: 30
Vim ,window in window?


Hi all,

I have a trivial question,please dont mind!
I want my vim to display 3 windows or 3 splits as its called. the reason being.I have a script that needs to be edited in one window and the base script that actually is the one that provides input and some other script that i keep testing my snips of my codes on!
Since i can only have 2 windows open at a time to see the codes legibly I wanted to know how i can split vim to occupy 3 windows at ones.
Or is there any options like window in window?

I am using SXDE 89

Thanks
 
Old 09-21-2008, 12:12 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
http://www.worldtimzone.com/res/vi.html

There are a couple decent cheatsheets.

Use the ':sp' command and the vi window will split itself multiple times. Here's the relevant portion from the link above:

Quote:
Working with multiple files

* :e filename - Edit a file in a new buffer
* :bnext (or :bn) - go to next buffer
* :bprev (of :bp) - go to previous buffer
* :bd - delete a buffer (close a file)
* :sp filename - Open a file in a new buffer and split window
* ctrl+ws - Split windows
* ctrl+ww - switch between windows
* ctrl+wq - Quit a window
* ctrl+wv - Split windows vertically
Hope this makes things easier.
 
Old 09-21-2008, 12:55 AM   #3
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
thank you!

It really helped me a lot!
 
Old 09-21-2008, 02:15 AM   #4
wrapster
Member
 
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30
This was nice , but one more question.
How do i use this split window make changes and run it on that split only?
It is possible or should i use something like a window in window sort of a thing?
If so can you please tell me how i can activate that mechanism?
 
Old 09-21-2008, 02:55 AM   #5
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
perhaps something like 'screen' might help. Not just an editor, it allows you to "window" your terminal sessions, split screens, attach and detach sessions (helpful if you're moving between computers a lot), and other features.

Some links:
http://tuxtraining.com/2008/08/24/ho...-command-line/
http://www.kuro5hin.org/story/2004/3/9/16838/14935
http://www.pixelbeat.org/lkdb/screen.html

Hopefully that will help get you started.
 
Old 09-21-2008, 10:45 AM   #6
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
Have you tried "gvim"? It is vim with an GUI attached. blastwave.org.
 
  


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
Trying to launch a new term window while executing a bash script in that window sfmadmax Linux - Newbie 5 12-09-2007 01:34 PM
xwindows, how can a client window be notified when parent window is moved/resized? shamju Linux - Desktop 1 02-03-2007 07:30 PM
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 8 08-30-2005 10:22 AM
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 2 08-15-2005 04:38 PM
creating a window in linux with a 'window' variable??! (openCV) vmok82 Programming 1 02-28-2005 03:38 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:47 AM.

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