Skip to main content
add delete-word-at-point
Source Link
ahilsend
  • 931
  • 6
  • 15

You can use universal-argument. There are two ways to move 3 words forward:

  • C-u3M-f
  • C-3M-f

But that's usually slower than doing M-f 3 times. You know you don't have release M, right?

I do not know what vim's civ does, but to go to a word just search for it with C-s. If you like to jump around have a look at Ace Jump. It works like the follow links feature of browser plugins like vimperator. With it you can jump to lines, word or even chars.


Ok, I don't think there is a built-in for that. Maybe this function helps:

(defun delete-word-at-point () "Delete word at point." (interactive) (let* ((p (point)) (beg (+ p (skip-syntax-backward "w_"))) (end (+ beg (skip-syntax-forward "w_")))) (kill-region beg end))) 

Put it in your ~/.emacs and bind to where you would like it. Maybe M-.:

(global-set-key (read-kbd-macro "M-.") 'delete-word-at-point) 

You can use universal-argument. There are two ways to move 3 words forward:

  • C-u3M-f
  • C-3M-f

But that's usually slower than doing M-f 3 times. You know you don't have release M, right?

I do not know what vim's civ does, but to go to a word just search for it with C-s. If you like to jump around have a look at Ace Jump. It works like the follow links feature of browser plugins like vimperator. With it you can jump to lines, word or even chars.

You can use universal-argument. There are two ways to move 3 words forward:

  • C-u3M-f
  • C-3M-f

But that's usually slower than doing M-f 3 times. You know you don't have release M, right?

I do not know what vim's civ does, but to go to a word just search for it with C-s. If you like to jump around have a look at Ace Jump. It works like the follow links feature of browser plugins like vimperator. With it you can jump to lines, word or even chars.


Ok, I don't think there is a built-in for that. Maybe this function helps:

(defun delete-word-at-point () "Delete word at point." (interactive) (let* ((p (point)) (beg (+ p (skip-syntax-backward "w_"))) (end (+ beg (skip-syntax-forward "w_")))) (kill-region beg end))) 

Put it in your ~/.emacs and bind to where you would like it. Maybe M-.:

(global-set-key (read-kbd-macro "M-.") 'delete-word-at-point) 
Source Link
ahilsend
  • 931
  • 6
  • 15

You can use universal-argument. There are two ways to move 3 words forward:

  • C-u3M-f
  • C-3M-f

But that's usually slower than doing M-f 3 times. You know you don't have release M, right?

I do not know what vim's civ does, but to go to a word just search for it with C-s. If you like to jump around have a look at Ace Jump. It works like the follow links feature of browser plugins like vimperator. With it you can jump to lines, word or even chars.