I know many will say to not mess with it if I don't know what I'm doing.
I'd like to set a macro in VI so that while in command mode, if I type something, say "gcc", it will run the following command:
!gcc % && a.out
Not that it is too horribly time consuming to type that or just !! to repeat that each time... I was just wanting to learn what my possibilities were. Is it something that needs to go in my .exrc file? Thanks.
2007-10-17
13:35:24
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design