Vim customization --
I have added these lines in my .vimrc
inoremap /* /**/< Left >
/ *
- /
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.
inoremap <buffer> /* /**/<Left><Left>
inoremap <buffer> /*<Space> /*<Space><Space>*/<Left><Left><Left>
inoremap <buffer> /*<CR> /*<CR>*/<Esc>O
inoremap <buffer> <Leader>/* /*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With