Find the answer to your Linux question:
Results 1 to 3 of 3
I have just recently started a class in Linux System Administration using SUSE 9 and I am having an issue editing a file in VI. I have never used Vi ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2

    Vi and editing

    I have just recently started a class in Linux System Administration using SUSE 9 and I am having an issue editing a file in VI. I have never used Vi before and can't seem to figure out how to edit /etc/profile and use line numbering. Can someone help please.

  2. #2
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Hello and welcome!

    The best way to get some quick lessons on vi is to run vimtutor if you happen to have vim installed. Just go to a terminal and enter vimtutor.

    You can also pickup some quick tips on the vim wiki:

    Tutorial - Vim Tips Wiki

    Note that vim is basically vi but with some added options, so many of the tips will apply to vi. You can do some googling for additional vi tips and info.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    1
    To view number lines, try:
    :set number

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...