From f4f0b92737c0cbb7f99740162e7cf2331d00be00 Mon Sep 17 00:00:00 2001 From: jefflance Date: Wed, 27 Jun 2018 18:20:09 +0200 Subject: [PATCH] Change Vundle conf for Vim-Plug. --- vim/vimrc | 85 +++++++++++++++++-------------------------------------- 1 file changed, 26 insertions(+), 59 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 40d09e3..d42acb6 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -44,65 +44,33 @@ cnoremap w!! w !sudo tee > /dev/null % -"""""""""""""""""""""""""""""""""""""""""" -" __ ___ _ _ _ ____ _ _____ -" \ \ / / | | | \ | | _ \| | | ____| -" \ \ / /| | | | \| | | | | | | _| -" \ V / | |_| | |\ | |_| | |___| |___ -" \_/ \___/|_| \_|____/|_____|_____| +""""""""""""""""""""""""""""""""""""""""""""""" +" __ _____ __ __ ____ _ _ _ ____ +" \ \ / /_ _| \/ | | _ \| | | | | |/ ___| +" \ \ / / | || |\/| | | |_) | | | | | | | _ +" \ V / | || | | | | __/| |__| |_| | |_| | +" \_/ |___|_| |_| |_| |_____\___/ \____| " -"""""""""""""""""""""""""""""""""""""""""" -" set the runtime path to include Vundle and initialize -set rtp+=~/.vim/bundle/Vundle.vim -call vundle#begin() -" alternatively, pass a path where Vundle should install plugins -"call vundle#begin('~/some/path/here') +""""""""""""""""""""""""""""""""""""""""""""""" +" Load vim-plug +if empty(glob("~/.vim/autoload/plug.vim")) + execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim' +endif -" let Vundle manage Vundle, required -Plugin 'VundleVim/Vundle.vim' +" Specify a directory for plugins +" - For Neovim: ~/.local/share/nvim/plugged +" - Avoid using standard Vim directory names like 'plugin' +call plug#begin('~/.vim/plugged') -" on GitHub repo -"Plugin 'ajh17/VimCompletesMe' -Plugin 'Shougo/denite.nvim' -Plugin 'itchyny/lightline.vim' -Plugin 'scrooloose/syntastic' -Plugin 'scrooloose/nerdtree' -Plugin 'Xuyuanp/nerdtree-git-plugin' -Plugin 'vim-scripts/colorizer' -Plugin 'JamshedVesuna/vim-markdown-preview' -Plugin 'scrooloose/nerdcommenter' -Plugin 'tpope/vim-fugitive' -Plugin 'tpope/vim-sleuth' -Plugin 'Valloric/YouCompleteMe' -Plugin 'mhinz/vim-signify' -Plugin 'godlygeek/tabular' -Plugin 'tpope/vim-surround' -Plugin 'plasticboy/vim-markdown' -Plugin 'mattn/gist-vim' -Plugin 'kamwitsta/commentToggle' -Plugin 'flazz/vim-colorschemes' -Plugin 'xero/sourcerer.vim' -Plugin 'dracula/vim' -Plugin 'romainl/apprentice' -Plugin 'jacoborus/tender' -Plugin 'noahfrederick/vim-noctu' -Plugin 'ryanoasis/vim-devicons' +Plug 'flazz/vim-colorschemes' +Plug 'xero/sourcerer.vim' +Plug 'romainl/apprentice' +Plug 'dracula/vim' +Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } +Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } - -" All of your Plugins must be added before the following line -call vundle#end() " required -filetype plugin indent on " required -" To ignore plugin indent changes, instead use: -"filetype plugin on -" -" Brief help -" :PluginList - lists configured plugins -" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate -" :PluginSearch foo - searches for foo; append `!` to refresh local cache -" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal -" -" see :h vundle for more details or wiki for FAQ -" Put your non-Plugin stuff after this line +" Initialize plugin system +call plug#end() @@ -148,15 +116,14 @@ colorscheme dracula """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" _ _ _ _ _ -" _ __ | |_ _ __ _(_)_ __ ___ ___ ___| |_| |_(_)_ __ __ _ ___ +" _ _ _ _ _ +" _ __ | |_ _ __ _(_)_ __ ___ ___ ___| |_| |_(_)_ __ __ _ ___ " | '_ \| | | | |/ _` | | '_ \/ __| / __|/ _ \ __| __| | '_ \ / _` / __| " | |_) | | |_| | (_| | | | | \__ \ \__ \ __/ |_| |_| | | | | (_| \__ \ " | .__/|_|\__,_|\__, |_|_| |_|___/ |___/\___|\__|\__|_|_| |_|\__, |___/ -" |_| |___/ |___/ +" |_| |___/ |___/ " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let vim_markdown_preview_toggle=1 let vim_markdown_preview_toggle=2 let vim_markdown_preview_browser='firefox' -