LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Vim ,window in window? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/vim-window-in-window-671328/)

wrapster 09-20-2008 11:55 PM

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

scott_R 09-21-2008 12:12 AM

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. :)

wrapster 09-21-2008 12:55 AM

thank you!

It really helped me a lot!

wrapster 09-21-2008 02:15 AM

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?

scott_R 09-21-2008 02:55 AM

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. :)

kebabbert 09-21-2008 10:45 AM

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


All times are GMT -5. The time now is 07:58 AM.