Add more vim plugins

This commit is contained in:
Jordan Holt 2021-01-13 23:47:10 +00:00
parent a7e06584ab
commit f54bc7ceb9
2 changed files with 12 additions and 2 deletions

View File

@ -43,19 +43,23 @@ augroup General
autocmd bufwritepost init.vim source $MYVIMRC
augroup END
call has('python3')
if empty(glob($XDG_CONFIG_HOME . '/nvim/autoload/plug.vim'))
silent !curl -fLo $XDG_CONFIG_HOME/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
silent !pip3 install pynvim
augroup Plug
au!
autocmd VimEnter * PlugInstall
" Bubble single lines
" Bubble single lines with vim-unimpaired
nmap <C-Up> [e
nmap <C-Down> ]e
" Bubble multiple lines
" Bubble multiple lines with vim-unimpaired
vmap <C-Up> [egv
vmap <C-Down> ]egv
@ -65,11 +69,15 @@ endif
call plug#begin($XDG_DATA_HOME . '/nvim/plugged')
Plug 'godlygeek/tabular'
Plug 'itchyny/lightline.vim'
Plug 'mbbill/undotree'
nn <silent> <Leader>u :UndotreeToggle <BAR> :UndotreeFocus<CR>
Plug 'sheerun/vim-polyglot'
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
Plug 'tommcdo/vim-exchange'
Plug 'tpope/vim-abolish'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'

View File

@ -16,6 +16,8 @@ sudo pacman -Sy \
pass-otp \
playerctl \
pulseaudio \
python \
python-pip \
rsync \
transmission-cli \
ttf-ubuntu-font-family \