From effa93526fcbb4586a669761156c082777dded55 Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Thu, 26 Dec 2019 13:59:01 -0800 Subject: [PATCH] Moving from Vundle to vim-plug --- minimal.vimrc.vim | 78 ++++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/minimal.vimrc.vim b/minimal.vimrc.vim index 677a230..641a4cd 100644 --- a/minimal.vimrc.vim +++ b/minimal.vimrc.vim @@ -12,11 +12,11 @@ " Vundle Installation {{{ " Bootstrap Vundle if it's not installed - if empty(system("grep lazy_load ~/.vim/bundle/Vundle.vim/autoload/vundle.vim")) - silent !mkdir -p ~/.vim/bundle - silent !rm -rf ~/.vim/bundle/Vundle.vim - silent !git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim - endif + if empty(glob("~/.vim/autoload/plug.vim")) + echo "No vim-plug, getting it ..." + execute '!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + echo "Getting vim-plug ... done" + endif " }}} " Base settings {{{ @@ -40,44 +40,41 @@ " Vundle setup - Preamble {{{ - set runtimepath+=~/.vim/bundle/Vundle.vim - call vundle#begin() - - Plugin 'VundleVim/Vundle.vim' + call plug#begin() " }}} " Vundle setup - Packages {{{ - Plugin 'scrooloose/nerdtree' - Plugin 'tpope/vim-fugitive' - Plugin 'mhinz/vim-signify' - Plugin 'tmhedberg/matchit' - Plugin 'spf13/vim-colors' - Plugin 'ajmwagar/vim-deus.git' - Plugin 'tpope/vim-surround' - Plugin 'tpope/vim-repeat' - Plugin 'drmikehenry/vim-fontsize' - Plugin 'jiangmiao/auto-pairs' - Plugin 'terryma/vim-multiple-cursors' - Plugin 'vim-airline/vim-airline' - Plugin 'vim-airline/vim-airline-themes' - Plugin 'roxma/vim-hug-neovim-rpc' - Plugin 'roxma/nvim-yarp' - Plugin 'Shougo/denite.nvim' - Plugin 'pR0Ps/molokai-dark' - Plugin 'flrnprz/plastic.vim' - Plugin 'nathanaelkane/vim-indent-guides' - Plugin 'luochen1990/rainbow' - Plugin 'vhda/verilog_systemverilog.vim' - Plugin 'nanotech/jellybeans.vim' + Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } + Plug 'tpope/vim-fugitive' + Plug 'mhinz/vim-signify' + Plug 'tmhedberg/matchit' + Plug 'spf13/vim-colors' + Plug 'ajmwagar/vim-deus.git' + Plug 'tpope/vim-surround' + Plug 'tpope/vim-repeat' + Plug 'drmikehenry/vim-fontsize' + Plug 'jiangmiao/auto-pairs' + Plug 'terryma/vim-multiple-cursors' + Plug 'vim-airline/vim-airline' + Plug 'vim-airline/vim-airline-themes' + "Plug 'roxma/vim-hug-neovim-rpc' + "Plug 'roxma/nvim-yarp' + "Plug 'Shougo/denite.nvim' + Plug 'ctrlpvim/ctrlp.vim' + Plug 'pR0Ps/molokai-dark' + Plug 'flrnprz/plastic.vim' + Plug 'nathanaelkane/vim-indent-guides' + Plug 'luochen1990/rainbow' + Plug 'vhda/verilog_systemverilog.vim' + Plug 'nanotech/jellybeans.vim' " }}} " Vundle - Closing {{{ - call vundle#end() " required - filetype plugin indent on " required + call plug#end() " }}} @@ -91,7 +88,7 @@ elseif has("win32") set guifont=Iosevka\ Term\ Regular\ 13 else - set guifont=Iosevka\ Term\ Regular\ 10.5 + set guifont=Iosevka\ Term\ Regular\ 13.5 end set columns=120 lines=54 @@ -113,6 +110,9 @@ set guioptions=iaA else set background=dark + if has('vcon') + set termguicolors + endif endif " check to make sure vim has been compiled with colorcolumn support @@ -121,8 +121,8 @@ set colorcolumn=120 endif - "colorscheme molokai-dark - colorscheme deus + colorscheme molokai-dark + "colorscheme deus set norelativenumber set number @@ -219,8 +219,10 @@ nnoremap s nnoremap v - nnoremap :Denite buffer - nnoremap b :Denite buffer + "nnoremap :Denite buffer + "nnoremap b :Denite buffer + nnoremap :CtrlPMixed + nnoremap b :CtrlPBuffer nnoremap :set wrap! nnoremap :set spell!