DavidVII
DavidVII

Reputation: 2283

I forgot how to call this in vim

nnoremap <C-n> :call NumberToggle()<cr>

I tried ctrl-n and it doesn't work. I've completely forgotten how to call this and google hasn't been my friend tonight.

Upvotes: 1

Views: 63

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172510

The mapping definition looks fine and should work in normal mode. If <C-n> doesn't work, the mapping probably has been overwritten. Check with

:verbose nmap <C-n>

If this yields a different plugin / configuration, you have to change either (e.g. to <Leader>n) to resolve the conflict.

Upvotes: 5

Related Questions