[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 12 Feb 2009 14:29:26 +0100
Mozilla-Thunderbird 184.108.40.206 (X11/20081018)
Is there any function providing the functionality of VIM's 'w'
command? It moves forward a word, but places you at the beginning of
the word rather than the end. A good illustration of this (that only
works when words are separated by whitespace) is forward-whitespace.
VIM's equivalent of forward-word is 'e', but it seems emacs has no 'w'?
Emacs has only C-M-w ;)
(defun vi-forward-word (arg)
((< arg 0)
((> arg 0)
(if (looking-at "\\w")
(setq arg (1+ arg)))