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 f6a75754f2f863693c13fc2e03dc119d9c754eea
parent 199f895a8f21b9352a9ec4e80ea32cfdcf2ffce2
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 26 Mar 2018 13:20:11 -0400

Use light-weight and built-in completion

Diffstat:
Mlinks/.vim/plugin/keybinds.vim | 16++++++++++++++++
Mlinks/.vim/plugins.vim | 12++++++------
2 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/links/.vim/plugin/keybinds.vim b/links/.vim/plugin/keybinds.vim @@ -203,3 +203,19 @@ nnoremap <silent> [W :ALEFirst<cr> nnoremap <silent> [w :ALEPreviousWrap<cr> nnoremap <silent> ]w :ALENextWrap<cr> nnoremap <silent> ]W :ALELast<cr> + +" Add completion bindings (cycle with C-n, C-p), see :h ins-completion +" <C-x><C-l>: while line +" <C-x><C-n>: keywords in current file +" <C-x><C-i>: keywords in current and included files +" <C-x><C-k>: keywords in dictionary (:set dictionary) +" <C-x><C-t>: keywords in thesaurus (not functional) +" <C-x><C-]>: tags +" <C-x><C-f>: file names +" <C-x><C-d>: definitions or macros +" <C-x><C-v>: vim command-line +" <C-x><C-v>: omni completion +" <C-x>s: spelling suggestions +" Other: +" <C-x><C-u>: emoji +" <C-x><C-z>: unicode diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -52,10 +52,10 @@ Plug 'junegunn/vim-online-thesaurus' " query with :OnlineThesaurusCurrentWord Plug 'maxbrunsfeld/vim-yankstack' """""" Autocomplete """""" -Plug 'ervandew/supertab' " complete with TAB in insert mode +"Plug 'ervandew/supertab' " complete with TAB in insert mode +"Plug 'Valloric/YouCompleteMe' " tab complete menu 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. @@ -92,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 @@ -111,9 +111,9 @@ 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>' +"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>"