36 lines
841 B
VimL
36 lines
841 B
VimL
|
set number relativenumber
|
||
|
|
||
|
augroup numbertoggle
|
||
|
autocmd!
|
||
|
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||
|
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||
|
augroup END
|
||
|
|
||
|
" https://stackoverflow.com/a/1878983
|
||
|
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||
|
|
||
|
set pyxversion=3
|
||
|
set colorcolumn=80
|
||
|
|
||
|
if exists('+termguicolors')
|
||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||
|
set termguicolors
|
||
|
endif
|
||
|
|
||
|
call plug#begin('~/.vim/plugged')
|
||
|
|
||
|
Plug 'sonph/onehalf', { 'rtp': 'vim' }
|
||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||
|
Plug 'norcalli/nvim-colorizer.lua'
|
||
|
Plug 'vim-airline/vim-airline'
|
||
|
Plug 'vim-airline/vim-airline-themes'
|
||
|
|
||
|
call plug#end()
|
||
|
|
||
|
colorscheme onehalfdark
|
||
|
|
||
|
source $HOME/.config/nvim/plug-config/coc.vim
|
||
|
source $HOME/.config/nvim/plug-config/airline.vim
|
||
|
|