Welcome to Centmin Mod Community
Register Now

Sysadmin Which Linux Text Editor do you prefer nano or vim ?

Discussion in 'System Administration' started by eva2000, Oct 21, 2016.

  1. nano

    10 vote(s)
    83.3%
  2. vim

    2 vote(s)
    16.7%
  1. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    If you use Centmin Mod, then you'll spend time logged into ssh via your ssh client like putty, securecrt etc. You'll need to use a linux text editor so you can edit config files, nginx vhosts, and other files in ssh. There's 2 main linux text editors folks use, nano or vim.

    Which is your preferred ? I started out with pico text editor in Pine so I prefer using it's successor, nano which you can read up more about nano here and here. For vim text editor read here and here.

    For folks new to nano or vim, there's numerous online how to use guides for nano and vim you can search for via google :)
     
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,026
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    12:56 PM
    1.13.x
    MariaDB 10.1.x
    Nano all the way.
     
    • Like Like x 2
  3. deltahf

    deltahf Active Member

    203
    99
    28
    Jun 8, 2014
    Ratings:
    +149
    Local Time:
    12:56 PM
    I started out with nano, but I switched over to vim a few years ago.

    I'm not particularly crazy about it, and I don't really use it enough to fully memorize all of the keyboard shortcuts, but I do like its syntax highlighting. Maybe nano has gotten better in this respect?
     
    • Like Like x 1
  4. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    7:56 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    I am using also nano :)

    It will be good if other users agree to have it installed by Centminmod and set it as default :)

    So i will avoid the crontab -e open in vim and remind me to install nano and set it as default :)
     
  5. cloud9

    cloud9 Premium Member Premium Member

    140
    54
    28
    Oct 6, 2015
    England
    Ratings:
    +75
    Local Time:
    5:56 PM
    1.11.x
    10.x
    Nano
     
  6. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    12:56 AM
    latest
    latest
    Nano but it pays to know even a little of vim
     
  7. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    centmin mod sets default linux editor as nano out of box since beginning, so that is what it should be doing

    it's not doing that for you ?

    unfortunately not yet

    indeed
     
  8. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    7:56 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    On some servers no. I am noticing that when i run crontab -e that is not the default editor and then i edit this:

    Code:
    /etc/bashrc
    and i add at the bottom this:

    Code:
    export EDITOR="nano"
    Then i logout from ssh and login again and crontab -e is using nano :)

    But i didn't know that Centminmod set nano as default so i didn't check on which cases or OS version or if it was a dedicated or vps server that i had this issue :(
     
  9. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:56 AM
    Nginx 1.13.x
    MariaDB 5.5
  10. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    7:56 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok if i got that again i will post here :)
     
    • Like Like x 1
  11. Matt

    Matt Moderator Staff Member

    680
    314
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +433
    Local Time:
    5:56 PM
    1.7.1
    MariaDB 10
    100% vim for me.
     
    • Like Like x 2
  12. Xon

    Xon Active Member

    124
    56
    28
    Nov 16, 2015
    Ratings:
    +160
    Local Time:
    12:56 AM
    1.11.x
    MariaDB 10.1.x
    I use nano for quick edits on a server.

    If I need a full editor, I use notepad++ and check the stuff into a git repo since versioning is really really useful.
     
    • Informative Informative x 1
  13. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    just added a poll to this thread - forgot about polls LOL
     
  14. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah actually nano does do syntax highlighting, might be worth enabling on centmin mod installs !

    upload_2016-10-22_22-28-11.png

    centos 7 supported syntax highlighing in nano
    Code (Text):
    grep '^# include' /etc/nanorc
    # include "/usr/share/nano/nanorc.nanorc"
    # include "/usr/share/nano/c.nanorc"
    # include "/usr/share/nano/makefile.nanorc"
    # include "/usr/share/nano/css.nanorc"
    # include "/usr/share/nano/debian.nanorc"
    # include "/usr/share/nano/gentoo.nanorc"
    # include "/usr/share/nano/html.nanorc"
    # include "/usr/share/nano/php.nanorc"
    # include "/usr/share/nano/tcl.nanorc"
    # include "/usr/share/nano/tex.nanorc"
    # include "/usr/share/nano/mutt.nanorc"
    # include "/usr/share/nano/patch.nanorc"
    # include "/usr/share/nano/man.nanorc"
    # include "/usr/share/nano/groff.nanorc"
    # include "/usr/share/nano/perl.nanorc"
    # include "/usr/share/nano/python.nanorc"
    # include "/usr/share/nano/ruby.nanorc"
    # include "/usr/share/nano/java.nanorc"
    # include "/usr/share/nano/fortran.nanorc"
    # include "/usr/share/nano/objc.nanorc"
    # include "/usr/share/nano/ocaml.nanorc"
    # include "/usr/share/nano/awk.nanorc"
    # include "/usr/share/nano/asm.nanorc"
    # include "/usr/share/nano/sh.nanorc"
    # include "/usr/share/nano/pov.nanorc"
    # include "/usr/share/nano/xml.nanorc"


    update: enabled nano syntax highlighting in 123.09beta01 Beta Branch - enable nano editor syntax highlighting in 123.09beta01 | Centmin Mod Community
     
    Last edited: Oct 22, 2016
    • Winner Winner x 2
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:56 AM
    Nginx 1.13.x
    MariaDB 5.5
  16. SeaTea

    SeaTea Premium Member Premium Member

    49
    13
    8
    Feb 20, 2015
    the Netherlands
    Ratings:
    +28
    Local Time:
    6:56 PM
    Nginx:1.11
    MariaDB-10
    nano or the build-in editor of Midnight Commander.

    (I use MC a lot for simple file manipulation - grew-up with norton-commander on DOS ;) )
     
    • Informative Informative x 1
  17. dooma

    dooma Premium Member Premium Member

    222
    22
    18
    Oct 15, 2016
    Cairo
    Ratings:
    +27
    Local Time:
    6:56 PM
    Nano is more better.
     
  18. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:56 AM
    Nginx 1.13.x
    MariaDB 5.5
    lots of nano fans !

    been playing with adding additional nano syntax highlighting formats support including nginx config file !

    upload_2016-10-24_0-45-53.png

    yum .repo files syntax

    upload_2016-10-24_0-54-0.png

    markdown syntax

    upload_2016-10-24_0-55-30.png

    sql syntax

    upload_2016-10-24_0-56-40.png
     
    Last edited: Oct 24, 2016
    • Like Like x 3
    • Winner Winner x 1
  19. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    6:56 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Allways Nano.
    I never tried Vim, but read about it on web, seems to me that it is very complicated on the beggining.
    So I just use Nano for small changes, and notepad+ for detailed changes and readings
     
    • Like Like x 1
  20. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    11:56 AM
    1.11.5
    MariaDB 10.0.28
    joe (Joe's Own Editor) works fine for me - I've used it for ages and is one of the first things I install on any flavor I set up - along with midnight commander.
    joe uses Wordstar command syntax - which I'm familiar with from my baddie old DOS days.
     
    • Informative Informative x 1