- Posts: 350
- Thank you received: 0
Tips
18 years 2 months ago #16482
by jwj
-Jeremy-
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.
vim filename
And then you'd be able to use sahirh's tips inside the program.
-Jeremy-
16 years 4 months ago #26639
by rd_07
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
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
16 years 3 months ago #27064
by sose
sose
Network Engineer
analysethis.co/index.php/forum/index
sahir did mention that when working in vi in his initial post
what is "vi"
what is "vi"
sose
Network Engineer
analysethis.co/index.php/forum/index
Time to create page: 0.126 seconds