From b61cbb6e6c409276644aba1ed7e8eb348b9f0a2a Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 3 Aug 2015 14:46:02 +0000 Subject: [PATCH] I modified lines of files --- git/gitconfig | 1 + vim/vimrc | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/git/gitconfig b/git/gitconfig index 09fd33e..8680f92 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -19,6 +19,7 @@ size = "!git diff --cached --binary | wc -c | numfmt --to=iec-i" wipe = !sh -c 'git filter-branch --prune-empty -f --index-filter \\\\\"git rm -rf --cached --ignore-unmatch \\\"$1\\\"\\\\\" --tag-name-filter cat -- --all' - x = "!exec " + unstage = reset HEAD -- [push] default = matching [core] diff --git a/vim/vimrc b/vim/vimrc index 2818e87..f018961 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -15,6 +15,10 @@ command! WW %!sudo tee > /dev/null % let g:indent_guides_auto_colors = 0 autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=darkgrey ctermbg=darkgrey autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=grey ctermbg=grey +filetype plugin on +set grepprg=grep\ -nH\ $* +let g:tex_flavor='latex' + "match Error /\s\+$/ "nnoremap s xa @@ -341,6 +345,8 @@ Plug 'https://github.com/xolox/vim-easytags' "Vim tags | https://github.com/xolox/vim-easytags Plug 'https://github.com/xolox/vim-misc' "Misc (required for easytags) | https://github.com/xolox/vim-misc +Plug 'https://github.com/lervag/vimtex' + " | https://github.com/lervag/vimtex call plug#end() filetype plugin indent on if exists("+undofile") @@ -405,4 +411,10 @@ function! Initialize() endif endif endfunction + if !exists('g:ycm_semantic_triggers') + let g:ycm_semantic_triggers = {} + endif + let g:ycm_semantic_triggers.tex = [ + \ 're!\\[A-Za-z]*(ref|cite)[A-Za-z]*([^]]*])?{([^}]*, ?)*' + \ ] set guifont=Fixed\ Medium\ Semi-Condensed\ 10