Hot Downloads

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me

TOPIC: Tips

Re: Tips 13 years 2 weeks ago #16482

  • jwj
  • jwj's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 350
  • Thank you received: 0
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-

Re: Tips 11 years 2 months ago #26639

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 : http://rdabrenica.x.am
and my online shop: http://www.cafepress.com/rdabrenica

Re: Tips 11 years 1 month ago #27064

  • sose
  • sose's Avatar
  • Offline
  • Honored Member
  • Honored Member
  • Posts: 814
  • Karma: 3
  • Thank you received: 4
sahir did mention that when working in vi in his initial post

what is "vi"

Re: Tips 11 years 1 month ago #27065

  • sose
  • sose's Avatar
  • Offline
  • Honored Member
  • Honored Member
  • Posts: 814
  • Karma: 3
  • Thank you received: 4
sorry I got vi
Time to create page: 0.109 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup