Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  "	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


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: