Browse Source

Add Vimtex settings

coc
Schneider 6 years ago
parent
commit
761fe23237
  1. 13
      vim/neosnippets/tex.snip
  2. 17
      vimrc.symlink

13
vim/neosnippets/tex.snip

@ -0,0 +1,13 @@
snippet environment
abbr env
alias env
options head
\begin{${1}}
${2}
\end{$1}
snippet align
options head
\begin{align${1:#:options}}
${0}
\end{align$1}

17
vimrc.symlink

@ -33,7 +33,10 @@ Plug 'godlygeek/tabular' " Align text on symbols
Plug 'szw/vim-tags' , { 'for' : 'php' } " tags support
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " fuzzy file finder
Plug 'junegunn/fzf.vim' " vim integration for fzf
Plug 'airblade/vim-gitgutter' " git status in gutter column
if has("nvim")
" Problems with Syntastic in vim
Plug 'airblade/vim-gitgutter' " git status in gutter column
endif
" html / templates
Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " emmet support for vim - easily create markdup wth CSS-like syntax
@ -174,6 +177,7 @@ let NERDTreeShowHidden=1
let g:airline_powerline_fonts = 1
" Syntastic
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
@ -190,6 +194,17 @@ autocmd FileType java setlocal omnifunc=javacomplete#Complete
" Python-mode config
let g:pymode_lint_on_write = 0
" Vimtex
if !exists('g:neocomplete#sources#omni#input_patterns')
let g:neocomplete#sources#omni#input_patterns = {}
endif
let g:neocomplete#sources#omni#input_patterns.tex =
\ '\v\\%('
\ . '\a*%(ref|cite)\a*%(\s*\[[^]]*\])?\s*\{[^{}]*'
\ . '|includegraphics%(\s*\[[^]]*\])?\s*\{[^{}]*'
\ . '|%(include|input)\s*\{[^{}]*'
\ . ')'
"}}}
" N E O C O M P L E T E {{{

Loading…
Cancel
Save