Skip to content

Instantly share code, notes, and snippets.

@leannejdong
Created August 25, 2021 03:25
Show Gist options
  • Save leannejdong/a933265eb80acee580ec82e559dc6f6e to your computer and use it in GitHub Desktop.
Save leannejdong/a933265eb80acee580ec82e559dc6f6e 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 spell spelllang=en_us
set statusline=
set list
set listchars=tab:>-
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 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
set foldlevelstart=99
set autochdir
set clipboard=unnamed
nnoremap space i<space><esc>
let g:vimtex_compiler_latexmk = {
\ 'options' : [
\ '--shell-escape',
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
inoremap <C-C> \textbf{}<left>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment