9
1
I'm new to vim and I'm trying to map a key combo for running the Ack plugin found here: https://github.com/mileszs/ack.vim
I want to map cmd-shift-f
to run the Ack command :Ack
. I've added the following to ~/.vimrc
nmap <D-F> :Ack<space>
It doesn't work. What am I doing wrong?
I'm using vim 7.3 within iTerm 2 on MacOS X.
That still doesn't work. It's weird because nmap <C-F> :Ack<space> works for <ctrl><shift>-f. But it doesn't work with <cmd> – jordelver – 2012-02-07T22:44:17.457
1Hmm, interesting.
nmap <D-F> :Ack<space>
does work in MacVim, but not in the terminal. Looks likecmd
is not recognised in a terminal. – jordelver – 2012-02-07T22:57:09.5331
And finally, according to this page: http://unix.stackexchange.com/questions/29665/in-vim-how-to-map-command-right-and-command-left-to-beginning-of-line-and-e
You can only use
<cmd>
key mappings in a GUI Vim such as MacVim. I've decided to just go with<ctrl>-f
for now.