I wrote a function in my vimrc file:
function! InsertDebugBlock()
call append(line('.'), [", "])
call setline(line('.') + 1, '#if DEBUG')
call setline(line('.') + 2, '#endif')
normal j
startinsert
endfunction
however, when I called it via vsvim in visual studio, it said:
call to function InsertDebugBlock not supported
but it works well with gvim
here are some configurations in vsvim
it says my vimrc file is "C:\Users\Deler\vimfiles\_vimrc", and that's what it is.
I can't find the problem. My vsvim version is 2.8.0.0, visual studio 2019