0
votes
1answer
22 views

Vim inserting C style comments

:command Linecomment :normal ^i/*<ESC>$a*/<ESC> The above command is one that I came up with in order to comment out an entire line in C, normally for debugging purposes and whatnot. I ...
2
votes
1answer
90 views

Open multiple tabs and split window based on files in Vim

I'm wondering, is there a way to open all my *.[c] files on different tabs, but split the window with the corresponding *.[h] file from the command line? I can split one file as: vim -O file1.c ...
0
votes
1answer
285 views

Vim bind compile key depending on document type

Is there a way to bind a key by document type? For example, if the document is a .tex file, I want f5 to call PdfLatex, but it is a .c file, I want it to call make