VIMTEX How do you enable/use the F7 key mentioned in the documentation? :map <F7> is empty and provides no clue.

EDIT: In response to the comments below. I cannot figure out what F7 is designed to do, and how to invoke it.

  • 1
    It can also be that your terminal catches F7 before it reaches Vim. – VanLaser Jan 25 '16 at 11:29
  • As this is more of a terminal configuration question than a Vim question, you're going to have to add some details about your environment: which operating system, which terminal (OS X Terminal.app? PuTTY?), what emulator settings (VT100?) etc. – 200_success Jan 25 '16 at 20:45
  • The answer below clarified the question. How do I use F7 in vimtex? – Yossi Gil Jan 26 '16 at 19:33

The <F7> key is enabled by default, unless you have other mappings either in your vimrc file or in another plugin that conflicts with the vimtex mapping.

You can use the mapping in both insert mode and in normal mode. In insert mode, you can use it to make the word in front of the cursor into a command, i.e.

test<f7>  =>  \test{

FYI: If you find the documentation for vimtex lacking or confusing, please open an issue or a pull request.


Not the answer you're looking for? Browse other questions tagged or ask your own question.