create new tag
, view all tags
Some tidbits about Nedit that I tend to forget (or didn't know).

See AboutThesePages.



  • Selection via the keyboard -- hold down <shift> while you navigate with keyboard navigation keys

  • Continuous wrap is what I call soft wrap -- the lines wrap on the screen but no line end characters are inserted to make the word wrap permanent

  • If you want to set "permanent" defaults, use Preferences -> Default Settings -- if you want to make setting changes just for the current session, use the other choices under Preferences

Use $ and ^ for what they're worth, rather than \n. Also *always use double escapes (\\) in regexes in macros*, since there are two rounds of escape processing: one for parsing the literal code to a string and one more when parsing the string as a regex. (This is just the sort of thing I'd like my single-quote patch incorporated for)

Aside: I had trouble writing a macro to convert the text form of "Dive Into Python" for display on TWiki for a few reasons. One was because the "spaces" in front of the asterisks in some places were hex a0, not hex 20. I ran khexedit (on the Knoppix utilities menu!!), to determine that, but I wasted a lot of time before I bothered to check. Then I had a lot of trouble (wasted a lot of time) searching for the a0 until I wrote the search term as "\\xa0{2}\\*". (To discover that, I developed the search term in the search dialog (as \xa0{2}\*), then "recorded the keystrokes" and pasted it into the macro where it appeared as "\\xa0{2}\\*". In the past I have used single escapes successfully at times in macros — maybe they're OK in the replace term? (I will have to experiment.) My rule of thumb until I know better will be to always use double escapes (\\) in macros.

  • I like Nedit, I guess because it's the most functional of the editors I've tried in Linux, without being as hard to use as vi or Emacs, or as gaudy as some others I tried. (It is far more functional than any of the kde editors or word processors I tried 2 to 3 years ago — I guess three of the big features are soft wrapping, macros, and keystroke recording. But, it's not particularly pretty, which is OK by itself, but because it does not look and behave the same as typical Windows or modern Linux GUI applications, it's behavior is not as "intuitive" as it could be. (I think the problems stem from the use of Motif / Lesstif instead of something more modern.) Some particular examples / suggestions:

    • Checkboxes: it's hard to tell whether a checkbox is selected or not because the only indication (at least in some distributions) is the difference between and "L" shaped line in the upper right vs. lower left of the checkbox. (On my current Knoppix 3.2 workstation, the center of the button turns black when selected — I'm not sure whether this is a "feature" of Knoppix or that I found some other option that I hadn't found before.) (PS: I forget which position of the L shaped line meant a checkbox was selected.)

    • Search and replace dialog: The dialog will disappear and you will lose your settings each time you "activate" it unless you check the "Keep Dialog" checkbox.

    • Macros: To get to the macro "definition" screen, go to Preferences -> Default Settings -> Customize Menus -> Macro Menus. You can record keystrokes to paste in a macro using <alt>k (and again to stop recording) — there is a selection on the macro definition screen that allows you to paste the recorded keystrokes in there.

  • When writing fairly complex macros, especially for long documents, I find it helpful (troubleshooting is easier) to use "replace_in_selection" (rather than "replace_all") to work on a small portion (the selection) of the document at a time until I've got everything worked out. When you're done, don't bother to convert to "replace_all", simply add a select_all (??) to the macro before any other commands (or select the entire document before running the macro).


  • () RandyKramer - 30 Aug 2002
  • <If you edit this page: add your name here; move this to the next line; and include your comment marker (initials), if you have created one, in parenthesis before your WikiName.>

Page Ratings

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-09-06 - RandyKramer
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look