Browse Source

Update NERDTree config, add LaTeX keybind

master
Riyyi 6 years ago
parent
commit
f61200eed7
  1. 1
      .config/vim/ftplugin/tex.vim
  2. 6
      .config/vim/vimrc

1
.config/vim/ftplugin/tex.vim

@ -5,6 +5,7 @@ setlocal textwidth=80
" Document structuring
nnoremap ;be i\begin{(<>)}<Return><Tab><Return>\end{(<>)}<Esc>kk^
nnoremap ;s i\section{}<Return>(<>)<Esc>k$i
" Text formatting
inoremap ;b \textbf{}(<>)<Esc>T{i

6
.config/vim/vimrc

@ -75,8 +75,12 @@ let g:NERDSpaceDelims=1
let g:NERDTrimTrailingWhitespace=1
" NERD Tree
let g:NERDTreeMinimalUI=1
let g:NERDTreeIgnore = ['\.git']
let g:NERDTreeAutoDeleteBuffer=1
let g:NERDTreeDirArrowExpandable = ' '
" let g:NERDTreeDirArrowCollapsible = ' '
let g:NERDTreeMinimalUI=1
let g:NERDTreeShowHidden=1
" vimtex
let g:tex_flavor = 'latex'

Loading…
Cancel
Save