some useful command for markdown and LaTeX
The using of this plug is like this:
You can use any package manager to install vim-mdtex
. With vim-plug
, just add current code to your vimrc
:
call plug#begin('~/.vim/plugged')
Plug 'Deeperand/vim-mdtex', {'for': ['tex', 'markdown']}
call plug#end()
The content in file will just load the plug only if the file's type is tex
or markdown
. Then save vimrc
and sorce it (or just restart Vim), and run :PlugInstall
.
Use key such as <localleader>b
to bold char under cursor in NORMAL
mode or selected content in VISUAL
mode. For LaTeX file, it will use \textbf{<text>}
; for markdown file, it will use **<text>**
.
Provide command to transfer markdown source code to LaTeX code or inverse. Such as transfer **text**
to \textbf{text}
or inverse