OpenBSD Journal

JED syntax mode for pf.conf editing

Contributed by Dengue on from the who-uses-JED? dept.

Shane writes : "I have created a JED syntax highlighting mode for editing your /etc/pf.conf files.

You can download the modes & view screenshots at

As far as I am concerned it looks better than the pf.vim highlighting mode ;)"

If you use JED, give this a try and provide the author with some feedback.

(Comments are closed)

  1. By Jedi/Sector One () on

    Jed is a very good text editor. I've never used anything else since 10 years or so :)

    So a new mode for PF mode is welcome. But unfortunately the web site seems to be down at the moment.

    1. By Shane () on

      Sorry about that, i had to re-install my firewall OpenBSD system today. When I got home the logs were flooded with arpresolve problems and the only solution that would fix it was a clean re-install... website is back up now :-)

  2. By Anonymous Peon () on

    This inspired me to give JED a spin. Unfortunately, it suffers from the usual *NIXisms in its interface- it has the Borland TurboVision *look,* but when you go to use it, the menus are unnecessarily modal, requiring a reach to F10 or the usual fake-meta Esc'ing. This, of course, appears to be about inspiring you to memorize the 'true' command sequences, but the thing I loved about the classic, MS/Borland implementations of pull-down menuing was that "Alt-[MenuHotkey] OptionHotkey" is basically as fast as an emacs or vi control sequence, while being self-documenting.

    Anyone know of an editor that:
    -Works well in both X11 and console modes;
    -Uses a self-documenting menu system, as described (without demanding a Meta key or remapping of backspace/^H);
    -Understands why easily toggled line-wrap could be useful;
    -Is extensible, at least to the point of using these sort of 'modes?'

    At present, Vim seems my best option, but I still don't relish the RSI of so much ESC-:'ing, and the apparent inability to make use of backspace.

    1. By N.N. () on

      (similair to pico, but opensource. It's in ports btw)

      "-Works well in both X11 and console modes;"

      Well it does run in an xterm but i'm not sure wether that counts.

      " -Uses a self-documenting menu system, as described (without demanding a Meta key or remapping of backspace/^H);"

      No clue, i don't understand this (English not native language).

      " -Understands why easily toggled line-wrap could be useful; "

      nano -w file
      can be made as alias ofcourse

      " -Is extensible, at least to the point of using these sort of 'modes?'"

      no clue.

      I tend to use vi(m) for the powerfull work and nano for the easy. Some systems don't have nano, then i just use vi(m) and it takes a bit longer because of the ESC'ing like you say. There are quite a lot editors in ports so you can try these out. I also like ae because it combines both my likings in nano and vi. Ae which comes with FreeBSD but there is a 3rd party port for OpenBSD somewhere on the net.

      I'd advise you to try out nano and ae :)

      can't remember where the ae port is. Try or or

      1. By Anonymous Peon () on

        Nano is great, ae is probably great, but as you've noted, they're lightweight with little extension possibility. While I'm not begging, it'd be great to have something based on emacs' principle of extensibility, while remaining useful as a 40k standalone binary if you don't have a Lisp/Perl/Ruby/Python interpreter installed. ;)

    2. By Zvezdan Petkovic () on

      Regarding vim:

      1. Vim uses backspace quite fine in Insert mode, i.e. when you write the text and start deleting without pressing Esc first, or when you press i or a and start deleting using backspace. You probably didn't set your terminal right.
      2. You can press Ctrl-[ which is really an Esc . That requires less hand movement from the keyboard
      3. You can call Vim as evim ( e asy vim ) to get into a modeless editor for simple editing, if you want.

      NEdit ( N irvana Edit or) is an editor that satisfies your requirements. It has an excellent extensibility and uses the standard Motif/PC/Mac key bindings. However, it doesn't work in console. Only in X.

      1. By Anonymous Peon () on

        Oops. Forgot about this thread for a while; thanks for the reply.

        Using gvim (X11; I *assume* those keymaps are okay, they work in everything else ;)), backspace produces backward movement in the text, without actually deleting anything. NEdit would be great - there're a lot of great X11 editors, these days - but I'm looking to chop down the modality between X and console, because it's nice to be able to maintain servers through PuTTY when you're stuck with Windows 'workstations.'

        Maybe it'd be different if I could afford an X-capable palmtop.


Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]