From 75de8a583c8c65a37374a8c1f14158b61c10f433 Mon Sep 17 00:00:00 2001 From: daniel Date: Sat, 18 Mar 2023 13:06:51 +0100 Subject: [PATCH] use vimplug --- install.sh | 7 +-- profiles/base/.config/nvim/init.vim | 3 ++ profiles/base/.vimrc | 66 +++++++---------------------- 3 files changed, 22 insertions(+), 54 deletions(-) create mode 100644 profiles/base/.config/nvim/init.vim diff --git a/install.sh b/install.sh index 4264f1e..ac0b4b4 100755 --- a/install.sh +++ b/install.sh @@ -27,9 +27,10 @@ fi # vundle -if [ ! -d "$HOME/.vim/bundle" ]; then - echo "setup vundle" - git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim +if [ ! -d "$HOME/.vim/autoload" ]; then + echo "setup vim plug" + curl -fLo /.vim/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim fi # linking dotfiles diff --git a/profiles/base/.config/nvim/init.vim b/profiles/base/.config/nvim/init.vim new file mode 100644 index 0000000..b42c8d9 --- /dev/null +++ b/profiles/base/.config/nvim/init.vim @@ -0,0 +1,3 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath=&runtimepath +source ~/.vimrc diff --git a/profiles/base/.vimrc b/profiles/base/.vimrc index e9c9923..d5df918 100644 --- a/profiles/base/.vimrc +++ b/profiles/base/.vimrc @@ -1,62 +1,26 @@ -set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/ +call plug#begin() +Plug 'vim-airline/vim-airline' +Plug 'lervag/vimtex' +Plug 'ibab/vim-snakemake' +Plug 'Yggdroot/indentLine' +Plug 'godlygeek/tabular' +Plug 'plasticboy/vim-markdown' +Plug 'morhetz/gruvbox' +Plug 'preservim/nerdcommenter' +call plug#end() + " Always show statusline set laststatus=2 -" Use 256 colours (Use this setting only if your terminal supports 256 colours) + +" Use 256 colours set t_Co=256 -set nocompatible " be iMproved, required + +" show linenumber set number -filetype off " required - -" 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') - -" let Vundle manage Vundle, required -Plugin 'VundleVim/Vundle.vim' -Plugin 'vim-airline/vim-airline' -Plugin 'kien/ctrlp.vim' -Plugin 'valloric/youcompleteme' -"Plugin 'davidhalter/jedi-vim' -"Plugin 'klen/python-mode' -Plugin 'biosyntax/biosyntax-vim' -Plugin 'hublot/vim-gromacs' -Plugin 'lervag/vimtex' -Plugin 'ibab/vim-snakemake' -Plugin 'Yggdroot/indentLine' -Plugin 'godlygeek/tabular' -Plugin 'plasticboy/vim-markdown' -Plugin 'morhetz/gruvbox' -Plugin 'preservim/nerdcommenter' -Plugin 'jpalardy/vim-slime' -let g:slime_target = "x11" let g:vim_markdown_folding_disabled = 1 -let g:pymode_python = "python3" -let g:pymode_virtualenv_path = "/home/bauer/conda" -let g:pymode = 1 -let g:pymode_options = 1 -" 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 -" - -let g:ycm_autoclose_preview_window_after_completion=1 - syntax on set softtabstop=4