Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Vi Editor Help

  1. #1

    Vi Editor Help

    Okay, i'm trying to install Crux 1.0 and need to edit some config files, it's default editor is Vi...ewww...which I do not like at all.

    The problem I'm having is when I start it and try to save the file, I always get error message that the file is in Read-Only mode. How do I turn on Write Mode?

    I've tried saving the files using :qw and the other save commands and it keeps saying its in R-O mode. And I am doing this as Root user.

    Thnx.

  2. #2

    Re:Vi Editor Help

    Hi,

    A couple of thoughts... As root can you do a chmod on the file to give root _rw permissions? Also, have you tried the :w! instead of :wq?

    Just thoughts...

    Jim

  3. #3

    Re:Vi Editor Help

    I would have to look at the file to see if permission can be changed, but it shouldn't have to since the docs state to modify the config files before you do a final reboot.

    I believe I tried every way to save files using Vi, ewww, that I could think of, but will try it again. I will reinstall Crux anyway, maybe something got messed up.

    Thnx.

  4. #4

    Re:Vi Editor Help

    hello,
    when saving do a w! and it will save anyway - you must be owner of the file or root to do this.

    edit:
    dih - RedHatNewbie beat me too it.

  5. #5
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Vi Editor Help

    well providing you setup sudo, you could just do a :

    sudo vim name_of_file

    and you shall have zero issues editing and saving

    I for insert (type in shit or delete it)
    [esc]:wq to quit (escape key, then colon, w, q)

  6. #6
    Mentor cga's Avatar
    Join Date
    May 2001
    Posts
    1,433

    Re:Vi Editor Help

    [quote author=GhostDawg link=board=2;threadid=6395;start=0#60309 date=1045560533]
    Vi...ewww...
    [/quote]

    LOL! You get an applaud!

  7. #7
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Vi Editor Help

    awww come on, vi aint THAT bad now :'(

    By the way, Barnes and Nobles has these little reference books for cheap. Pick one up on vi and emacs. You will need it one day. vim makes vi look like the bastard son of evil for someonme who has never used plain ole vi. And as a former admin, its nice to have a clue as to what you are getting into ;D I cant comprehend emacs all that well. I needed that thingie.

    Since I am not at home right now, I cant check the ISBN codes, but IIRC its an oreilly reference handbook. Around 12 bucks each.

  8. #8

    Re:Vi Editor Help

    [quote author=Schotty link=board=2;threadid=6395;start=0#60365 date=1045616402]
    Pick one up on vi and emacs. You will need it one day. vim makes vi look like the bastard son of evil for someonme who has never used plain ole vi.
    [/quote]

    vi and emacs in one book? ;D

    Wouldn't that cause a black hole upon contact?

    lol @ vim. I thought vi was great, but once you start picking up vim-only commands, its worse than learning latin - it sure is a spiffy way of getting around though. Go Vi(m)!

    vi is a microcosm of the Unix world. Don't expect
    to learn all of it at once; perhaps you shouldn't expect
    to learn all of it at all. -- Jon Lasser

  9. #9
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Vi Editor Help

    hehe -- no nuc explosion ;D

    No they are separate.

  10. #10

    Re:Vi Editor Help

    Thnx guys/gals...I'll have to try those commands sometime between Wed-Fri. when I'm off work.

    All of this editing is going on during installation so most commands are limited.

    One reason you may see me post messages late is that I work 3rd shift hours! :-[

Similar Threads

  1. Joe's Own Editor
    By cga in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 04-13-2003, 02:44 PM
  2. RH8 & Menu Editor
    By jmbrinks in forum Redhat / Fedora
    Replies: 1
    Last Post: 10-27-2002, 08:02 PM
  3. HTML editor for KDE?
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 05-20-2002, 09:41 AM
  4. sgml editor?
    By cga in forum Linux - Software, Applications & Programming
    Replies: 12
    Last Post: 03-27-2002, 05:54 PM
  5. Hex editor for linux?
    By t048 in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 03-27-2002, 05:02 PM

Bookmarks

Posting Permissions

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