Console editing in OpenBSD

| | Comments (0) |

Even though the 4,000+ packages and ports for OpenBSD include just about every text editor you could want, the out-of-the-box installation includes just one editor. I bet you can guess which one it is.

If you guessed vi, you win. If you didn't, what's wrong with you? I'm not saying you've got to love vi -- and it's perfectly all right if you hate it. But something as hard core as OpenBSD just says "you'll use vi -- and you'll like it."

Like I said, it's not as if you can't add just about any editor you want. I've already put Nano and Geany on my two OpenBSD boxes. But even though Nano -- the default console editor in Debian and Ubuntu -- seems easier to use for the occasional console user with its F3-to-save, none-of-this-two-modes-crap functionality.

And if all you're doing is hacking away at config files in /etc and /home, either editor will do just fine.

But if you're using the console to really write stuff, you'd think that Nano would be the better choice, since you don't have to program your fingers and mind to do things the vi way, switching between text mode and command mode.

For me, the problem with Nano is that it's set by default to justify text. And in doing that, linefeeds are entered into the copy. That mucks things up when I'm taking the text files and pasting them into this blog, for instance. But with justification turned off, the lines careen off the side of the screen, and I can't really see what I'm working on.

But in vi, unjustified text doesn't wrap pretty (although it can easily be set to do so, either in a user's configuration file or in command mode during any vi session). But it does wrap -- even if it breaks between words. And you can see your entire text file on the screen at all times.

And now that I figured out how to cut and past with the mouse in the console (by highlighting the text and clicking both mouse buttons at the same time), I'm way more productive in both vi and Nano than I've ever been. I know that using the mouse is tre wimpy, especially when you've got dozens of buffers at your disposal in most console editors. I'll get there, but for now, I'm using vi more than ever -- and I'm not hating it.

But in the interest of full disclosure, I'm a lot more productive using Geany in X. I just happen to like Geany, and I like having multiple windows open in the same application, the ability to save my Geany session by simply not closing any files, and the general ability of X editors to show type wrapped while not adding any linefeeds to the type itself.

And in a totally unrelated note, I don't really use Abiword much these days, but I really liked the way, when I installed it via Aptitude in Debian, Abiword automatically had the spell checker plugin configured. I can't seem to get spell checking working in Abiword in OpenBSD, and again, it's not something at which I'm an all-out expert in any case. But it's nice to have something to work on.


Leave a comment

Tech Talk column

Steven Rosenberg's weekly Tech Talk column, which appeared Saturdays in the Los Angeles Daily News through about October 2009, is available on the Daily News Technology page.

About this blog






Steven Rosenberg aims to learn what he does not know. He writes about it here.



About this Entry

This page contains a single entry by Steven Rosenberg published on April 13, 2008 5:00 AM.

BSD on the $15 Laptop was the previous entry in this blog.

Why OpenBSD? is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Comments

Powered by Movable Type 4.25

Search this blog

Loading

LXer

Links

Daily News technology
LXer
Distrowatch
Linus' Blog
David Pogue
BoingBoing
Linux Today
TuxRadar
Linux.com
Linux Planet
The Open Road
Linux Outlaws podcast
Dan Lynch
Fabian Scherschel
The VAR Guy
Larry the Free Software Guy
Chess Griffin
Linux Reality podcast
Desktop Linux
Practical Technology
Linux Devices
ZDNet
ZDNet's Storage Bits
ZDNet U.K.
iTWire
CNet News
Webware
Beyond Binary
TechCrunch
The Register
Ars Technica
Reg Developer
Computerworld
Computerworld blogs
Steven J. Vaughan-Nichols at Computerworld
Debian
Planet Debian
Debian Forums
Debian News
debianHELP
debiantutorials.org
The Debian User
Wolfgang Lonien
Debian-News.net
Debian Administration
Debian Admin
Debian Weather
Aaron Toponce
Ubuntu
Xubuntu
Kubuntu
Edubuntu
Planet Ubuntu
Ubuntu Forums
Ubuntu Geek
Works With U
OMG! Ubuntu!
I' Been to Ubuntu
Tanner Helland
Dustin Kirkland
Ubuntu UK Podcast
Ubuntu Linux Help
Popey
Linux Mint
CrunchBang Linux
OpenBSD
OpenBSD Journal
OpenBSD Ports
OpenBSD 101
Planet.OpenBSD.nu
jggimi's OpenBSD live CD
DaemonForums
BSDanywhere
Marc Balmer
Denny's OpenBSD blog
Polarwave's OpenBSD Tips and Tricks
Binary Updates for OpenBSD
Puppy Linux
Damn Small Linux
Tiny Core Linux
Lucky 13's Linux blog (lots of Tiny Core)
Lucky 13's BSD blog
PCLinuxOS
Mandriva
Red Hat
Red Hat News
Red Hat Blogs
Red Hat: Truth Happens
Red Hat Magazine
CentOS
Planet CentOS
Fedora
Planet Fedora
Fedora Forums
Fedora Docs
Join Fedora
Slackware
Slackbuilds
Robby's Slackware Packages
Slackblogs
dropline GNOME for Slackware
GNOME Slackbuild
GWARE - GNOME for Slackware
Wolvix
Zenwalk Linux
Vector Linux
Slax
Splack Linux — Slackware for Sparc
Nonux
How to Forge
marc.info BSD and Linux mailing list archive
FreeBSD
FreeBSD, the Unknown Giant
A Year in the Life of a BSD Guru
NetBSD
hubertf's NetBSD Blog
PC-BSD
Daemon Forums
FreeBSD Forums
Planet FreeBSD
Evilcoder.org
miwi's Privat Blog
DragonFlyBSD
DragonFlyBSD Digest
DesktopBSD
BSD Talk podcast
BSD Magazine
Rhyous
OpenSolaris
MilaX
BeleniX
DeLi Linux
Linux Loop
Electronista
The Tech Report
Engadget
Gizmodo
Phoronix
xkcd – A webcomic of romance, sarcasm, math and language
Nixie Pixel
Technology for Mortals
Thoughts on Technology
ZaReason
System 76
Tiger Direct
NewEgg
DealExtreme

Advertisement

Other blogs

Neuheisel/Johnson Pt. 3 in Inside UCLA with Jon Gold
Live: U.S.-Chile at Home Depot Center in 100 Percent Soccer
Girls' basketball: Bell-Jeff wins again in Daily News High School Spotlight
Decision Time in Inside USC with Scott Wolf
Countdown to Debian Squeeze in CLICK