Skip to content

Instantly share code, notes, and snippets.

@ngn999
Created December 9, 2012 07:17
Show Gist options
  • Save ngn999/4243728 to your computer and use it in GitHub Desktop.
Save ngn999/4243728 to your computer and use it in GitHub Desktop.
dabbrev-completion

M-x dabbrev-completion

相当于补全当前buffer里已经出现过的word, 而不用预先定义abbrev.

默认绑定到了M-/, C-M-/, 前都被已经被我用掉了, 后者在terminal下按不出来:(

不过已经启用Auto Complete的同学是不需要这个了.

写这个只是记录一下dabbrev是怎么回事.

For example, if the buffer contains `does this follow ' and you type `f o M-/', the effect is to insert `follow' because that is the last word in the buffer that starts with `fo'. A numeric argument to `M-/' says to take the second, third, etc. distinct expansion found looking backward from point. Repeating `M-/' searches for an alternative expansion by looking farther back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment