For the Vim editor, how do I map the function key in .vimrc on Mac OS X?

I am trying to map f11 to a command inside vim with a line in .vimrc, for example:

map <F11> :exe '!ctags -R --python-kinds=-i -f ./tags ' . shellescape(system('python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"'))<CR>

But if you press F11, it will simply increase the volume. Is it possible to reassign keys that are OS-wide in OSX?

I don't want to reuse the more commonly used key here, because tag regeneration takes some time.

+5
source share
2 answers

You have two options that I know of:

1) , .. f1 - f12 OSX, ​​ . fn, f. , Vim/MacVim. System preferences --> Keyboard Use all F1, F2,...

2) fn + F11.

+5

All Articles