From 2680e47ecdcc8eb30a52eb330c4312df6e9ab4f7 Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 26 Jul 2021 21:25:26 -0700 Subject: vim vundle -> plug --- .vimrc | 75 +++++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 38 insertions(+), 37 deletions(-) diff --git a/.vimrc b/.vimrc index 78ccaeb..4db2b7c 100644 --- a/.vimrc +++ b/.vimrc @@ -6,50 +6,48 @@ set nocompatible -"""""""""""" -" VUNDLE " -"""""""""""" - -exec 'set rtp+=' . split(&rtp, ',')[0] . '/bundle/Vundle.vim' -call vundle#begin() +""""""""""""" +" PLUGINS " +""""""""""""" -Plugin 'gmarik/Vundle.vim' +call plug#begin('~/.vim/plugged') "FILETYPES -Plugin 'vim-crystal/vim-crystal' -Plugin 'elixir-lang/vim-elixir' -Plugin 'https://git.airen-no-jikken.icu/ageha/every.vim.git' -Plugin 'plasticboy/vim-markdown' -Plugin 'https://git.airen-no-jikken.icu/ageha/mips.vim.git' -Plugin 'rust-lang/rust.vim' -Plugin 'cakebaker/scss-syntax.vim' -Plugin 'cespare/vim-toml' +Plug 'vim-crystal/vim-crystal' +Plug 'elixir-lang/vim-elixir' +Plug 'https://git.airen-no-jikken.icu/ageha/every.vim.git' +Plug 'leanprover/lean.vim' +Plug 'plasticboy/vim-markdown' +Plug 'https://git.airen-no-jikken.icu/ageha/mips.vim.git' +Plug 'rust-lang/rust.vim' +Plug 'cakebaker/scss-syntax.vim' +Plug 'cespare/vim-toml' "FUNCTIONALITY -Plugin 'junegunn/vim-easy-align' +Plug 'junegunn/vim-easy-align' -Plugin 'xolox/vim-misc' -Plugin 'https://git.airen-no-jikken.icu/ageha/vim-easytags.git' +Plug 'xolox/vim-misc' +Plug 'https://git.airen-no-jikken.icu/ageha/vim-easytags.git' -Plugin 'tommcdo/vim-exchange' +Plug 'tommcdo/vim-exchange' -Plugin 'lilydjwg/fcitx.vim' +Plug 'lilydjwg/fcitx.vim', { 'branch': 'fcitx4' } -Plugin 'airblade/vim-gitgutter' +Plug 'airblade/vim-gitgutter' -Plugin 'junegunn/goyo.vim' +Plug 'junegunn/goyo.vim' -Plugin 'sjl/gundo.vim' +Plug 'sjl/gundo.vim' -Plugin 'itchyny/lightline.vim' +Plug 'itchyny/lightline.vim' -Plugin 'dhruvasagar/vim-table-mode' +Plug 'dhruvasagar/vim-table-mode' -Plugin 'tomtom/tcomment_vim' +Plug 'tomtom/tcomment_vim' -Plugin 'SirVer/ultisnips' +Plug 'SirVer/ultisnips' -call vundle#end() +call plug#end() @@ -282,6 +280,7 @@ if has('autocmd') au FileType elixir call settings_elixir() au FileType javascript call settings_c() au FileType tex call settings_tex() + au FileType go call settings_c() au FileType haskell call settings_haskell() au FileType html call settings_html() au FileType xhtml call settings_html() @@ -386,9 +385,11 @@ fun! s:settings_c() setlocal softtabstop=4 setlocal cinoptions=:0,(s,m1,U1 "mappings - "note: these mappings are in weird reverse order to avoid opening folds + nnoremap -_ O// nnoremap -- O*/hhi/* + "note: weird reverse order to avoid opening folds inoremap { }i{O + inoremap ( )i(O endfun fun! s:settings_coffee() @@ -421,14 +422,6 @@ fun! s:settings_elixir() inoremap do endhhidoO endfun -fun! s:settings_ia64() - "settings - setlocal foldmethod=syntax - "mappings - nnoremap -- A*/hhi/* - nnoremap -_ O*/hhi/* -endfun - fun! s:settings_haskell() "settings setlocal shiftwidth=4 @@ -449,6 +442,14 @@ fun! s:settings_html() nnoremap -- O-->3hi