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
|
|
|
|
2020-04-06 07:34:54 +00:00
|
|
|
autocmd FileType json syntax match Comment +\/\/.\+$+
|
|
|
|
|
|
|
|
nnoremap <C-J> <C-W><C-J>
|
|
|
|
nnoremap <C-K> <C-W><C-K>
|
|
|
|
nnoremap <C-L> <C-W><C-L>
|
|
|
|
nnoremap <C-H> <C-W><C-H>
|
2020-04-05 19:36:24 +00:00
|
|
|
|
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-04-05 19:36:24 +00:00
|
|
|
|
2020-03-08 19:05:20 +00:00
|
|
|
Plug 'psliwka/vim-smoothie'
|
2020-04-05 19:36:24 +00:00
|
|
|
Plug 'norcalli/nvim-colorizer.lua'
|
2020-03-31 20:34:56 +00:00
|
|
|
Plug 'vim-airline/vim-airline'
|
2020-04-05 19:36:24 +00:00
|
|
|
|
2020-04-06 07:34:54 +00:00
|
|
|
Plug 'AndrewRadev/bufferize.vim'
|
|
|
|
|
2020-04-05 19:36:24 +00:00
|
|
|
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()
|