From 4f376d5e1f51635eeb70ed200bdfe5ae085bed62 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 30 Oct 2022 03:36:05 +0100 Subject: [PATCH] vimrc: add ultisnips,vim-snippets+rm vim-clang --- .vim/vimrc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.vim/vimrc b/.vim/vimrc index dd97bd9..9524c41 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -58,6 +58,8 @@ Plug 'junegunn/goyo.vim', { 'for': 'markdown' } Plug 'preservim/nerdcommenter' Plug 'airblade/vim-gitgutter' Plug 'LunarWatcher/auto-pairs' +Plug 'SirVer/ultisnips', { 'on': [] } +Plug 'honza/vim-snippets', { 'on': [] } Plug 'tpope/vim-surround' " fugitive.vim: A Git wrapper so awesome, it should be illegal @@ -421,6 +423,14 @@ let g:vim_json_conceal = 0 let g:markdown_syntax_conceal = 0 +""" ultisnips +" If you want :UltiSnipsEdit to split your window. +" let g:UltiSnipsEditSplit="vertical" +let g:UltiSnipsExpandTrigger='' +" let g:UltiSnipsJumpForwardTrigger="" +" let g:UltiSnipsJumpBackwardTrigger="" + + let g:git_messenger_close_on_cursor_moved = v:false let g:git_messenger_always_into_popup = v:true hi gitmessengerHash term=None guifg=#f0eaaa ctermfg=111 @@ -919,7 +929,10 @@ augroup async_plug_load autocmd! " these plugins take the longest to load, let's do it in a semi-non-blocking " fashion - autocmd CursorHold,CursorHoldI * call plug#load('vim-clang', 'vim-speeddating') + " used to use CursorHold,CursorHoldI but I'm not sure if that didn't go + " off on *every* CursorHold, so this is the solution (perhaps not as async + " anymore)... + autocmd BufWinEnter * call plug#load('vim-speeddating', 'ultisnips', 'vim-snippets') \| autocmd! async_plug_load augroup END