2 ms·
" Shift-Alt-S -- (C++) - change the current word/identifier in a quoted " string to an ostream expression. " For example, put the cursor on on the 'x
by marshray 15y ago
" Shift-Alt-S -- (C++) - change the current word/identifier in a quoted
" string to an ostream expression.
" For example, put the cursor on on the 'xxx' in:
" cout << "value = xxx\n";
" hit Shift-Alt-S and it changes to:
" cout << "value = " << xxx << "\n";
inoremap <S-A-s> <Esc>lbdei" << <Esc>pa << "<Esc>bb
inoremap ^[S <Esc>lbdei" << <Esc>pa << "<Esc>bb
noremap <S-A-s> lbdei" << <Esc>pa << "<Esc>bb
noremap ^[S lbdei" << <Esc>pa << "<Esc>bb
onoremap <S-A-s> <C-c>lbdei" << <Esc>pa << "<Esc>bb
onoremap ^[S <C-c>lbdei" << <Esc>pa << "<Esc>bb