Select Git revision
.vimrc 42.85 KiB
" Plug stuff
set nocompatible " be iMproved, required
filetype off " required
if has ("nvim")
" Install vim-plug if we don't already have it, nvim
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
silent !curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin(stdpath('data') . '/plugged')
else
" Install vim-plug if we don't already have it
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
endif
" Henrik's curated plugins
" For all your commenting needs, <Leader>c<space>
"Plug 'scrooloose/nerdcommenter'
Plug 'preservim/nerdcommenter'
" Replace with Register
Plug 'inkarkat/vim-ReplaceWithRegister'
if exists('g:vscode')
" VSCode extension
else
" Bracketed paste, automatically enters paste mode
Plug 'ConradIrwin/vim-bracketed-paste'
" ordinary neovim
" NERDTree file browser
"Plug 'scrooloose/nerdtree'
Plug 'preservim/nerdtree'
" Filetype and other icons
Plug 'Xuyuanp/nerdtree-git-plugin'
" Icons for devices, used in nerdtree etc
Plug 'ryanoasis/vim-devicons'
" Syntax checker
Plug 'scrooloose/syntastic'
" Absolute and relative numbering
Plug 'myusuf3/numbers.vim'
" For tmux and vim tab jumping
Plug 'christoomey/vim-tmux-navigator'
" Improve tmux and vim compatibility
Plug 'tmux-plugins/vim-tmux-focus-events'
" spf13 color pack
Plug 'spf13/vim-colors'
" PaperColor theme
Plug 'NLKNguyen/papercolor-theme'
" vim-sol theme for diffs
Plug 'kshenoy/vim-sol'
" Add support for json with comments
Plug 'kevinoid/vim-jsonc'
endif
if has('nvim')
" Requires a Nerd Font-patched font
" yay nerd-fonts-fira-code
" Need to run :CHADdeps to fully install it
"Plug 'ms-jpq/chadtree', {'branch': 'chad', 'do': 'python3 -m chadtree deps'}" ChadTree alternative