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