Skip to content

Instantly share code, notes, and snippets.

@leannejdong
Created August 25, 2021 03:07
Show Gist options
  • Select an option

  • Save leannejdong/e31188e9c18bc455037ea6ab8b89029e to your computer and use it in GitHub Desktop.

Select an option

Save leannejdong/e31188e9c18bc455037ea6ab8b89029e to your computer and use it in GitHub Desktop.
set ai
set si
set sw=2
"set exrc
set expandtab
set formatoptions+=o
set hidden
"set number
set ls=2
set spell spelllang=en_us
set tabstop=4
" inoremap { {}<ESC>ko
call plug#begin('~/.vim/plugged')
"Plug 'tmsvg/pear-tree'
Plug 'lervag/vimtex'
"Plug 'vim-latex/vim-latex'
call plug#end()
let g:tex_flavor = "latex"
autocmd Filetype tex inoremap <buffer> $ $$<left>
" put \begin{} \end{} tags tags around the current word
map <C-B> YpkI\begin{<ESC>A}<ESC>jI\end{<ESC>A}<esc>kA
map! <C-B> <ESC>YpkI\begin{<ESC>A}<ESC>jI\end{<ESC>A}<esc>kA
let g:vimtex_compiler_latexmk = {
\ 'options' : [
\ '--shell-escape',
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment