From: Jannik ZANDER Date: Sun, 17 Jun 2018 19:14:02 +0000 (+0200) Subject: Try vim 8 pack X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=e8ace0134b350f161cfe0d0ac1d2a35167535d27;p=dotfiles.git Try vim 8 pack --- diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e1e69e0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".vim/pack/plugins/start/vim-plug"] + path = .vim/pack/plugins/start/vim-plug + url = https://github.com/junegunn/vim-plug diff --git a/.vim/pack/plugins/start/vim-plug b/.vim/pack/plugins/start/vim-plug new file mode 160000 index 0000000..fef4e43 --- /dev/null +++ b/.vim/pack/plugins/start/vim-plug @@ -0,0 +1 @@ +Subproject commit fef4e434baf9edbe0bd1c241efdb76d47172bd4f diff --git a/.vimrc b/.vimrc index 18372b6..0204ad0 100644 --- a/.vimrc +++ b/.vimrc @@ -1,30 +1,20 @@ " section: environment {{{1 " --------------------- -if (empty(glob('~/.cache/vim/autoload/plug.vim')) || - \ empty(glob('~/.local/share/vim/viminfo'))) - cd ~ - silent !mkdir -p .local/share/vim/{swap,backup,undo} - silent !mkdir -p .cache/vim/autoload - silent !curl -fLo .cache/vim/autoload/plug.vim - \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - autocmd VimEnter * PlugInstall | source $MYVIMRC - cd - -endif - -set directory=~/.local/share/vim/swap -set backupdir=~/.local/share/vim/backup -set undodir=~/.local/share/vim/undo -set viminfo+=n~/.local/share/vim/viminfo -set runtimepath+=~/.cache/vim +"silent !mkdir -p ~/.local/share/vim/{swap,backup,undo} +"set directory=~/.local/share/vim/swap +"set backupdir=~/.local/share/vim/backup +"set undodir=~/.local/share/vim/undo +"set viminfo+=n~/.local/share/vim/viminfo +"set runtimepath+=~/.cache/vim " section: plugins {{{1 " --------------------- -silent call plug#begin('~/.cache/vim/bundle') -Plug 'easymotion/vim-easymotion' -Plug 'tpope/vim-surround' -Plug 'tpope/vim-commentary' -Plug 'michaeljsmith/vim-indent-object' +"silent call plug#begin('~/.cache/vim/bundle') +"Plug 'easymotion/vim-easymotion' +"Plug 'tpope/vim-surround' +"Plug 'tpope/vim-commentary' +"Plug 'michaeljsmith/vim-indent-object' "Plug 'tpope/vim-unimpaired' "Plug 'tpope/vim-dispatch' "Plug 'tpope/vim-repeat' @@ -41,8 +31,8 @@ Plug 'michaeljsmith/vim-indent-object' "Plug 'mileszs/ack.vim' "Plug 'jeetsukumaran/vim-filesearch' "Plug 'haya14busa/incsearch.vim' -Plug 'altercation/vim-colors-solarized' -Plug 'editorconfig/editorconfig-vim' +"Plug 'altercation/vim-colors-solarized' +"Plug 'editorconfig/editorconfig-vim' "Plug 'johnsyweb/vim-makeshift' "Plug 'tfnico/vim-gradle' "Plug 'a.vim' @@ -50,7 +40,7 @@ Plug 'editorconfig/editorconfig-vim' "Plug 'hdima/python-syntax' "Plug 'klen/python-mode' "Plug 'jalcine/cmake.vim' -call plug#end() +"call plug#end() " section: options {{{1 " ---------------------