DervishD wrote: > > Incidentally, a wrapper function to delete the word under the cursor > > is a little tricky to write. > > Writing zle widgets is tricky. If you have 4.1, much of the work is done for you; see the description of match-words-by-style in the zshcontrib manual. Here's a function using it (which consequently won't work in 4.0) which can go into the distribution when the glitches have been ironed out. A side effect is that you can decide using styles what constitutes a word, as described in the same section of the manual.