Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to accomplish equivalent of Vim's Ctrl-n in GNU Emacs?

Vim's Ctrl+N generally works like this: I type few letters, hit Ctrl+N, and Vim provides me with completions based on words in my all opened buffers.

Solution for Emacs doesn't have to be identical. I mainly use it like this: declare variable, then use it in later code. But I like the lightweight approach of not parsing the source code.

like image 218
Paweł Hajdan Avatar asked Jan 15 '09 20:01

Paweł Hajdan


1 Answers

You want dabbrev-expand, bound to M-/ by default. I haven't used Vim, but from your description, it does the exact same thing.

like image 118
Vladimir Avatar answered Oct 23 '22 12:10

Vladimir