I wanted to visual select code blocks inside markdown files, so I wrote this pretty simple script.
Someone might find it useful.
You can change the symbols as you like in searchpos
, but this only works for multiple lines.
function! InsideTicks()
call searchpos('`', 'b')
normal! jv
call searchpos('`', 'W')
normal! be
endfunction
nnoremap <leader>mc :<c-u>call InsideTicks()<cr>