SHARE
TWEET

Untitled

a guest Aug 14th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func! RegionMakeBold()
  2.   hi MyBold gui=bold
  3.   let l_start = getpos("'<")[1]
  4.   let l_end = getpos("'>")[1]
  5.   let c_start = getpos("'<")[2]
  6.   let c_end = getpos("'>")[2]+1
  7.   execute 'syntax region MyBold start=/%'.l_start.'l%'.c_start.'c/ end=/%'.l_end.'l%'.c_end.'c/'
  8. endfunc
  9.  
  10. vnoremap <leader>b :<C-U>call RegionMakeBold()<CR>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top