32 lines
867 B
VimL
32 lines
867 B
VimL
" Allow saving of files as sudo when I forgot to start vim using sudo.
|
|
cmap w!! w !sudo tee > /dev/null %
|
|
set number relativenumber
|
|
set clipboard+=unnamedplus
|
|
|
|
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>
|
|
|
|
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
|
|
silent !curl -fLo ~/.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()
|
|
|
|
Plug 'psliwka/vim-smoothie'
|
|
Plug 'norcalli/nvim-colorizer.lua'
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'AndrewRadev/bufferize.vim'
|
|
|
|
Plug 'airblade/vim-gitgutter'
|
|
Plug 'tpope/vim-fugitive'
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release' }
|
|
|
|
call plug#end()
|