nefte is a lightweight programmers editor. Here is descriptioin:
Description : eFTE is an advanced programmers editor with goals of being lightweight, yet
: totally configurable. Support for user defined programming languages, menu
: systems and key bindings are provided with many common defaults already
: defined. eFTE is still a new project, however, we extend from the FTE editor
: which was first released in 1995, so eFTE is tried and true with many features
: for the programmer/text editor.
: This package contains nefte, the ncurses version of the editor.
And to install:
sudo yum install nefte
There are lot of features taht you can explore and use.
It is quite lightweight programmers editor.
You can use vim mappings to make some of your editor tasks very simple. Here I am giving you just a example, but you could always let your imagination run wild.
:nmap ,b Oj0c$**hP
And what do we do here.
O – Add a new line
– Go to normal mode
j – go to newly added line
0 – Go to begining of line
c$ – Change till end of line
****<Esc> – Enter four stars
h – go back one character.
P – Paste the last deleted line, which is what we deleted with c$.
This is just to show you how powerful, mappings can be. So, GO WILD with imagination.
Very quick update, to use registers, you can select and then yank in a register to paste using the same register. This could be a convinient way to copy multiple selections and then paste which ever selection you want. Here is the simple way to do it:
visuallly select with v/V
then “qy to yank (here we are yanking into register q, so in the command you can use any of a-z to use as register)
then “qp to paste..
To, view all the registers, you can use the command “registers”.