Vim customization —
I have added these lines in my .vimrc
inoremap /* /**/< Left >
- what i intend is, when in press open comments /* — it should automically print the closing comment.
- when in comments, what do i add to .vimrc, so that when in comments block at each enter, an “*” is printed at the next line.
/ *
-
- /
-
if i have to add some lines automatically at top of each file i create (in a particular folder) eg – like licenses headers. how to do that. — i can think of, making a template file, doing a cp temp.c abc.c and then vi abc.c. is there any other way.
Use this.