Find the answer to your Linux question:
Results 1 to 4 of 4
I am quite comfortable with nano. But I still would like to know what advantages there are to using vi editor , over nano. I input a web search with ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Aug 2009
    Posts
    156

    Solvled Why vi or vim when you can use nano?


    I am quite comfortable with nano. But I still would like to know what advantages there are to using vi editor , over nano. I input a web search with same question, but did not get the answer I was looking for. Frank

    Thanks Ozar, for pointing me in the right direction. I was confusing vi vim and visudo.
    I found a website that gave me the advantages of the vi editor and how to use it.
    I will post the link in hopes it may help someone else.

    VI and VIM editor: Tutorial and advanced features
    Last edited by frank56; 05-24-2010 at 12:48 PM. Reason: to correct error

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    The visudo command is for editing the sudoers file:

    visudo - Wikipedia, the free encyclopedia

    You can use nano to do that but it's not as safe to do so.

    Otherwise, vi and vim are much more powerful as text editors than is nano, but you should use whatever you need for your purposes, or want to use.
    oz

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You can also use nano as the editor in visudo.

    Code:
    sudo EDITOR=nano visudo

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    If I'm not mistaken, there are some other editors that can be used with the proper variables, as well. I used to use nano without the variables for carefully editing the sudoers file but was lucky to have never had any problems, I suppose.
    oz

Posting Permissions

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