Friday, 15 January 2010

c - how to create alias for #include in vim -



c - how to create alias for #include<stdio.h> in vim -

everytime write programme need #include or other #include things...

is there anyway create alias this, when type inc in vim , press key, inc changes #include

you can utilize in .vimrc:

iabbrev _istd #include <stdio.h><cr>

now if type _istd include pasted. can have several includes this:

iabbrev _istd #include <stdio.h><cr>#include <stdlib.h><cr>#include <string.h><cr>

c unix vim alias

No comments:

Post a Comment