Skip to main content

Tips

More
18 years 2 months ago #16482 by jwj
Replied by jwj on topic Re: Tips
Sose, Vi is a unix test editor. Nowadays, most Linux distros have Vim (Vi Improved), but it's essentially the same, just more features. You would edit a file in Vim with this basic command from your Linux shell:

vim filename

And then you'd be able to use sahirh's tips inside the program.

-Jeremy-
More
16 years 4 months ago #26639 by rd_07
Replied by rd_07 on topic Re: Tips

Very nice tip!!

Here's mine:

When working in vi, go to command mode <escape> then type
:split

That will split your window, allowing you to edit two files at once

:split <filename>

Will open the file in the split window.

Press ctrl W twice to switch between the two files

If you type

:vert split

You will have a vertical split window!

You can keep splitting multiple times both horizontally and vertically... this is a great way to correlate logfiles and modify configuration files..

Cheers,



cool! indeed very useful
tried it, am using it most of the time
better than typing long commands and instead of going back to the dir

thanks guys!


check my exotic forum : rdabrenica.x.am
and my online shop: www.cafepress.com/rdabrenica
More
16 years 3 months ago #27064 by sose
Replied by sose on topic Re: Tips
sahir did mention that when working in vi in his initial post

what is "vi"
More
16 years 3 months ago #27065 by sose
Replied by sose on topic Re: Tips
sorry I got vi
Time to create page: 0.126 seconds