Vim customization -- .vimrc -- mapping of keys
vim
Solution
Use this.
inoremap <buffer> /* /**/<Left><Left>
inoremap <buffer> /*<Space> /*<Space><Space>*/<Left><Left><Left>
inoremap <buffer> /*<CR> /*<CR>*/<Esc>O
inoremap <buffer> <Leader>/* /*
Problem
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.