dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 199f895a8f21b9352a9ec4e80ea32cfdcf2ffce2
parent b4841b26a76310c7ff8f36d0b1252e478237f679
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 26 Mar 2018 11:57:45 -0400

Improve autocomplete and snippets

Diffstat:
Mlinks/.vim/plugins.vim | 17+++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -53,6 +53,9 @@ Plug 'maxbrunsfeld/vim-yankstack' """""" Autocomplete """""" Plug 'ervandew/supertab' " complete with TAB in insert mode +Plug 'honza/vim-snippets' " snippets are separate from ultisnips +Plug 'SirVer/ultisnips' " complete boilerplate code +Plug 'Valloric/YouCompleteMe' " tab complete menu """""" Version control """""" Plug 'tpope/vim-fugitive' " :Gread, :Gwrite, etc. @@ -64,7 +67,7 @@ Plug 'tpope/vim-dispatch' " for asynchronous :Make """""" File types """""" " General -Plug 'msanders/snipmate.vim' " boilerplate code +"Plug 'msanders/snipmate.vim' " boilerplate code " Go Plug 'fatih/vim-go' @@ -89,7 +92,7 @@ Plug 'plasticboy/vim-markdown' Plug 'vim-scripts/mutt-aliases', { 'for': 'mail' } " complete ~/.mutt/aliases " LaTeX -Plug 'lervag/vimtex' +"Plug 'lervag/vimtex' Plug 'anders-dc/vim-scholarref' " search bibtex refs from web " Vimscript @@ -107,6 +110,16 @@ let g:gitgutter_map_keys = 0 let g:go_version_warning = 0 +" make YouCompleteMe compatible with UltiSnips (using supertab) +let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] +let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] +let g:SuperTabDefaultCompletionType = '<C-n>' + +" better key bindings for UltiSnipsExpandTrigger +let g:UltiSnipsExpandTrigger = "<tab>" +let g:UltiSnipsJumpForwardTrigger = "<tab>" +let g:UltiSnipsJumpBackwardTrigger = "<s-tab>" + " vim-markdown configuration " navigate headers with ]] and [[ " format a table with :TableFormat