set nocompatible filetype plugin indent on if has("gui_running") inoremap else inoremap endif """"" VimTeX """"""""""""""""""""""""""" let &rtp = '~/.vim/bundle/vimtex,' . &rtp let &rtp .= ',~/.vim/bundle/vimtex/after' let g:tex_flavor='latex' "... if !exists('g:ycm_semantic_triggers') let g:ycm_semantic_triggers = {} endif let g:ycm_semantic_triggers.tex = [ \ 're!\\[A-Za-z]*cite[A-Za-z]*(\[[^]]*\]){0,2}{[^}]*', \ 're!\\[A-Za-z]*ref({[^}]*|range{([^,{}]*(}{)?))', \ 're!\\hyperref\[[^]]*', \ 're!\\includegraphics\*?(\[[^]]*\]){0,2}{[^}]*', \ 're!\\(include(only)?|input){[^}]*', \ 're!\\\a*(gls|Gls|GLS)(pl)?\a*(\s*\[[^]]*\]){0,2}\s*\{[^}]*', \ 're!\\includepdf(\s*\[[^]]*\])?\s*\{[^}]*', \ 're!\\includestandalone(\s*\[[^]]*\])?\s*\{[^}]*', \ 're!\\usepackage(\s*\[[^]]*\])?\s*\{[^}]*', \ 're!\\documentclass(\s*\[[^]]*\])?\s*\{[^}]*', \ ] """""""""""""""""""""""""""""""""""""""""""""" """""" YouCompleteMe"""""""""""""""""""""""""" let g:ycm_auto_trigger = 0 let g:ycm_complete_in_comments = 1 let g:ycm_collect_identifiers_from_comments_and_strings = 1 let g:ycm_seed_identifiers_with_syntax = 1 " make YCM compatible with UltiSnips (using supertab) let g:ycm_key_list_select_completion = ['', ''] let g:ycm_key_list_previous_completion = ['', ''] let g:SuperTabDefaultCompletionType = '' """""""""""""""""""""""""""""""""""""""""""""" """""" UltiSnips """"""""""""""""""""""""""""" let g:UltiSnipsExpandTrigger="" let g:UltiSnipsListSnippets="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" " with python 3 snippets are not shown in YouCompleteMe list "let g:UltiSnipsUsePythonVersion = 2 """""""""""""""""""""""""""""""""""""""""""""" """""" Nvim-R settings""""""""""""""" vmap RDSendSelection nmap RDSendLine let vimrplugin_applescript=0 let vimrplugin_vsplit=1 " disable autoconversion of _ to <- let vimrplugin_assign = 0 """""""""""""""""""""""""""""""""""""