The problem is that within <...> notation mappings, case is (mostly) insensitive, so you have to explicitly state you want to map with the shift key. Try this:
nmap <D-S-F> :Ack<space>
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.
The problem is that within <...> notation mappings, case is (mostly) insensitive, so you have to explicitly state you want to map with the shift key. Try this:
nmap <D-S-F> :Ack<space>
Oder ... du könntest darüber nachdenken:
nmap <D-F> :Ack <space>
Sie brauchen die Schicht nicht zu erwähnen, und dies löst immer noch nur ein Großbuchstabe F aus (obwohl die Schicht in der Bindung nicht erwähnt wird, müssen Sie sie trotzdem drücken).
Das funktioniert zumindest für mich.