Vim: insert word with vim-surround

I am using a surround vim plugin. when I write a latex source for a word \bfsimilar to

hello w*orld 

(* - cursor position) I use

ysiw}a\bf<space>

and get

hello {\bf *world}

is there an easier way? or how can i automatically paste \bf?

+3
source share
1 answer

I decided to add this to my ~ / .vimrc file

let g:surround_42 = "{\\bf \r}"

and call the word in normal mode

ysiw*

EDIT

true for a full line with

yss*
+5
source

All Articles