Web lists-archives.com

Re: text editors




I use vim.

Log in as user that will use vim, and run the following command:



cat > .vimrc << "EOF"
set nosi noai
set number
 
EOF



Now when you use vim, there will be a line number at the beginning of every line.

Wayne Sallee
Wayne@xxxxxxxxxxxxxxx
http://www.WayneSallee.com


-------- Original Message --------
*Subject: *  text editors
*From: *     Mick Crane <mick.crane@xxxxxxxxx>
*To: *        Debian-user <debian-user@xxxxxxxxxxxxxxxx>
*Date: *      2019-3-25  12:38 AM
Is there any text editor, preferably in a terminal that has the facility to protect lines in the document, not the document itself ?
I've got 2 blocks of "code" that look similar and I keep editing the wrong one and then it doesn't work.
mick