diff --git a/vimrc b/vimrc index 78b09e8..ab557cb 100644 --- a/vimrc +++ b/vimrc @@ -652,6 +652,13 @@ function! s:backtick_op(type) endf nnoremap ` :set operatorfunc=backtick_opg@ vnoremap ` :call vsurround("`", "`") + +function! s:asterisk_op(type) + normal `[m<`]m> + call surround(a:type, "*", "*") +endf +nnoremap * :set operatorfunc=asterisk_opg@ +vnoremap * :call vsurround("*", "*") " --- END OF SURROUND MAPPINGS --- nnoremap :L @@ -715,10 +722,6 @@ nnoremap [p :let [content, type]= nnoremap o0 nnoremap O0 -" Markdown Stuff -vnoremap * `>a*` -vnoremap _ `>a__` - " === GENERAL ABBREVIATIONS === cabbr rcpath fnamemodify($MYVIMRC, ":p:h")