dotfiles/.config/nvim/init.vim

27 lines
731 B
VimL
Raw Normal View History

2019-09-13 16:56:53 +00:00
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
2019-10-08 10:37:21 +00:00
set number relativenumber
2019-10-10 08:32:33 +00:00
set clipboard+=unnamedplus
2020-03-08 19:05:20 +00:00
autocmd FileType json syntax match Comment +\/\/.\+$+
2020-03-31 20:34:56 +00:00
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
2020-03-08 19:05:20 +00:00
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
2020-03-08 19:05:20 +00:00
Plug 'psliwka/vim-smoothie'
Plug 'norcalli/nvim-colorizer.lua'
2020-03-31 20:34:56 +00:00
Plug 'vim-airline/vim-airline'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'neoclide/coc.nvim', {'branch': 'release' }
2020-03-08 19:05:20 +00:00
call plug#end()