Thanks to this SE answer I now know that I can emphasise the highlighted word with `em.

Is there a way to remove the \emph{} from a word?


The same question was asked in this question on Stack Overflow. The accepted answer by Peter Rincker is:

If you have surround.vim by Tim Pope this might do

nmap <silent> dsa ds}dF\
  • Thanks Anthony. It's a pain that there're two websites really isn't it? Things tend to fall between two stools. – LondonRob Aug 29 '14 at 15:57

Alternative Plugin vimtex

provides mapping in the spirit of surround.vim

dsc - delete surrounding command
dse - delete surrounding environment

Plugin is currently (09/2015) maintained and actively developed in 2015.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.