What is your favorite text editor?

bugzeo

Member

Reaction score: 18
Messages: 95

For GUI I prefer Kate, but requires lots of libraries and overloads lightweight desktops like XFCE4. For shell, nano is the perfect combination.
 

astyle

Aspiring Daemon

Reaction score: 372
Messages: 849

For GUI I prefer Kate, but requires lots of libraries and overloads lightweight desktops like XFCE4. For shell, nano is the perfect combination.
Same editor preferences here, but I do use KDE.
 

fernandel

Daemon

Reaction score: 298
Messages: 1,024

Still "vi" which I learn when we have at work RISC computer with AIX on, sometimes "ee" and Midnight Commander which I have also "centuries" on my system.
 

grahamperrin

Daemon

Reaction score: 525
Messages: 1,705

Command line

nano | editors/nano

Where nano can not be installed, ee.

Incidentally, <https://web.archive.org/web/20161108072145/http://www.users.uswest.net/~hmahon/>

aee … both a terminal (curses based) interface and native X-Windows interface (in which case the executable is called xae). …
GUI

Code - OSS | editors/vscode | Visual Studio Code - Code Editing. Redefined

For ⋯.json files, sometimes Firefox as an editor. www/firefox

For some things (I can't remember what), I use Geany | devel/geany | <https://www.geany.org/>
 

grahamperrin

Daemon

Reaction score: 525
Messages: 1,705

Not my favourite editor, but my favourite discovery (because it can simplify editions):

devel/uclcmd

Here, recent examples include:

sudo uclcmd set --json --file /usr/local/etc/pkg/repos/poudriere.conf poudriere.enabled false

sudo uclcmd set --json --file /usr/local/etc/pkg/repos/poudriere.conf poudriere.enabled true

Code:
% uclcmd
Usage: uclcmd get [-cdejklmNquy] [-D char] [-f file] [-o file] variable
       uclcmd set [-cdjmnuy] [-t type] [-D char] [-f file] [-i file] [-o file] variable [UCL]
       uclcmd merge [-cdjmnuy] [-D char] [-f file] [-i file] [-o file] variable
       uclcmd remove [-cdjmnuy] [-D char] [-f file] [-o file] variable

COMMON OPTIONS:
       -c --cjson      output compacted JSON
       -d --debug      enable verbose debugging output
       -D --delimiter  character to use as element delimiter (default is .)
       -e --expand     Output the list of keys when encountering an object
       -f --file       path to a file to read or write
       -j --json       output pretty JSON
       -k --keys       show key=value rather than just the value
       -l --shellvars  keys are output with underscores as delimiter
       -m --msgpack    output MSGPACK
       -n --noop       do not save changes to file, only output to STDOUT
       -N --nonewline  separate output with spaces rather than newlines
       -o --output     file to write output to, defaults to STDOUT
       -q --noquotes   do not enclose strings in quotes
       -t --type       make the new element this type
       -u --ucl        output universal config language
       -y --yaml       output YAML
       variable        The key of the variable to read, in object notation
       UCL             A block of UCL to be written to the specified variable

GET OPTIONS:

SET OPTIONS:
       -i --input      use indicated file as additional input (for combining)

MERGE OPTIONS:
       -i --input      use indicated file as additional input (for merging)

REMOVE OPTIONS:

EXAMPLES:
       uclcmd get --file vmconfig .name
           "value"

       uclcmd get --file vmconfig --keys --noquotes array.1.name
           array.1.name=value

       uclcmd get --file vmconfig --keys --shellvars array.1.name
           array_1_name="value"


%
 

mkru

Member

Reaction score: 2
Messages: 25

I have been using vim/nvim for few years. Then I have switched to Kakoune. I find Kakoune more intuitive, cleaner and more coherent.
 

fbsd_

Active Member

Reaction score: 19
Messages: 103

My favorite is vscode

but if I will do fast work I prefer
sublime text for GUI
nano or vim for terminal
 

freedavidc

New Member

Reaction score: 1
Messages: 3

I would like to know which text editor you use in FreeBSD, I like vim very much to program, for very simple things I usually use nano.

Which one is your favorite?

PD: This does not try to be a flame "emacs vs vim" just a nice debate.
Vim. But if it's a gui based text editor for just copy pasting notes, then I would say Leafpad or anything similar would work fine.
 

grahamperrin

Daemon

Reaction score: 525
Messages: 1,705

Spun off from <https://forums.FreeBSD.org/threads/82101/post-532410> and thereabouts

Re: vi,

… There is no escape!

I don't attempt to remove vi.

Instead, I habitually edit things such as /etc/profile so that EDITOR and VISUAL will be something other than vi. For myself, <https://gist.github.com/grahamperrin/83fa2bd1f3dbf32fa8019ec04f810c6e#etcprofile> and so on (I don't keep the page up-to-date, it's just enough to remind me what must be set and unset).

End result:

Code:
root@mowa219-gjp4-8570p-freebsd:~ # echo $SHELL && echo $EDITOR $VISUAL
/bin/csh
/usr/local/bin/nano /usr/local/bin/nano
root@mowa219-gjp4-8570p-freebsd:~ # sh
# echo $EDITOR $VISUAL
/usr/local/bin/nano /usr/local/bin/nano
# exit
root@mowa219-gjp4-8570p-freebsd:~ # exit
logout
% whoami
grahamperrin
% echo $SHELL && echo $EDITOR $VISUAL
/bin/tcsh
/usr/local/bin/nano /usr/local/bin/nano
% sh
$ echo $EDITOR $VISUAL
/usr/local/bin/nano /usr/local/bin/nano
$ exit
%

Above, I prefer editors/nano because it's what was taught to me around 1994.

More generally, for a base system installation, ee will be a better choice.

Picturing ee, aee and nano:

1632184023708.png
 

astyle

Aspiring Daemon

Reaction score: 372
Messages: 849

I first learned about PINE in college, back in 2001, it was a University of Washington product from Seattle. Wayback machine reminded me what info page about PINE looked like back then. PINE is what introduced me to Pico, which was way easier than Vi. I liked it to the point that I was able to track down Nano, the successor, and I'm grateful it's still in ports.
 

macondo

Active Member

Reaction score: 97
Messages: 191

In order of usage:
1, ee -- easy, no thinking
2. nano -- muscle memory
3. vi -- gotta go slow - thinking-- save/exit :x enter.
 

Zirias

Daemon

Reaction score: 1,413
Messages: 2,467

Shouldn't there be a poll? Cause seriously, if you don't count "notepad" (and some other pretty "simple" editors), the main question is just which user interface you like best (or: know best).

Anyways, another vote for vim (or, if not available, any other "vi" implementation).
 
Top