Skip to content

Instantly share code, notes, and snippets.

@veirus
Last active October 8, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veirus/93606837ea53e9dd30650c36d45ca601 to your computer and use it in GitHub Desktop.
Save veirus/93606837ea53e9dd30650c36d45ca601 to your computer and use it in GitHub Desktop.
Installing Vim plugins using `axvr/Vivid.vim`. Pros: less boilerplate than `minpac`; Cons: you need to enable plugins *manually* - may brake some of them.
" quick add plugins for a plugin manager to load {{{1
function! AddPacFromCb() abort
if v:version >= 801 || (v:version == 800 && has("patch1630"))
let l:cb = trim(@+)
else
" do oldschool way to trim all spaces and whatnot
let l:cb = substitute(@+,'\v^\s*(.{-})\s*\n$','\1','')
endif
let l:cb = substitute(l:cb, '\v^https://github.com/','','')
put = 'Plugin ''' . l:cb . ''''
endfunction
nnoremap <leader>v :call AddPacFromCb()<CR>
" matchit {{{1
if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
packadd matchit
map Q %
endif
packadd Vivid.vim
" tpope {{{2
Plugin 'tpope/vim-commentary', { 'enabled' : 1 }
Plugin 'tpope/vim-eunuch', { 'enabled' : 1 }
Plugin 'tpope/vim-repeat', { 'enabled' : 1 }
Plugin 'tpope/vim-rsi', { 'enabled' : 1 }
Plugin 'tpope/vim-sleuth'
Plugin 'tpope/vim-speeddating'
Plugin 'tpope/vim-surround', { 'enabled' : 1 }
Plugin 'tpope/vim-unimpaired'
Plugin 'tpope/vim-vinegar', { 'enabled' : 1 }
" Colorschemes {{{2
Plugin 'endel/vim-github-colorscheme'
color github " flatlandia "mustang "railscasts
Plugin 'jordwalke/flatlandia'
Plugin 'croaker/mustang-vim'
Plugin 'dhruvasagar/vim-railscasts-theme'
Plugin 'larsbs/vimterial_dark'
Plugin 'neutaaaaan/iosvkem'
" misc {{{2
Plugin 'amiorin/vim-eval', { 'enabled' : 1 }
Plugin 'dhruvasagar/vim-zoom'
Plugin 'honza/vim-snippets', { 'enabled' : 1 }
Plugin 'hsitz/VimOrganizer'
Plugin 'junegunn/fzf', { 'enabled' : 1 }
Plugin 'junegunn/fzf.vim', { 'enabled' : 1 }
Plugin 'junegunn/goyo.vim'
Plugin 'kalekundert/vim-coiled-snake', { 'enabled' : 1 }
Plugin 'sirver/UltiSnips', { 'enabled' : 1 }
Plugin 'tommcdo/vim-lion', { 'enabled' : 1 }
" packages }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment