That's what I'm doing:
vnoremap <buffer> <leader>sur "zc\surroundingtext{<C-R>z}<Esc>
This creates a display in visual display mode, where you can visually select ( v) the text you want to surround, enter \sur(provided that by default mapleader \), and the text will be surrounded by the text you specify.
"z 'z'c vim , 'z'\surroundingtest -<C-R>z Vim 'z'} -<Esc>
:
nnoremap <buffer> <leader>sur i\surroundingtext{}<Esc>i
inoremap <buffer> <leader>sur \surroundingtext{}<Esc>i
~/.vimrc , filetype.
~/.vim/after/ftplugin/tex.vim, , filetype tex. , .
, tex, :
filetype plugin on