I am using vim-latex and I am searching for a solution to delete an attribute/a command around a phrase. E.g.
\textit{\textbf{Foo}}
shall become
\textit{Foo}
somehow. I found the "surroundings"-script which is powerful for single signs but unfortunately cannot achieve my goals.
Any ideas and hints?
If you have surround.vim by Tim Pope this might do
nmap <silent> dsa ds}dF\
you could do something like
F{dF\ds{
F{ "goes back to the last { before the cursor
dF\ "deletes the attribute
ds{ "deletes the {} (needing the surround-plugin
and put this to a new-vim-command like ds or something but otherwise I don't know either.
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