Executing the current line in vim
You can execute the (vim) command in the current line by pressing
For example: You have the following line in your latex file:
Now you can execute this line by placing the cursor on it, and typing (in command mode) yy@". And you get a list of all sections of the current file.
% :r!grep section %