88 lines
1.5 KiB
VimL
88 lines
1.5 KiB
VimL
|
set autoread
|
||
|
set autowrite
|
||
|
set backspace=2
|
||
|
set breakindent
|
||
|
set clipboard=unnamed
|
||
|
set colorcolumn=+1
|
||
|
set complete+=kspell
|
||
|
set cursorline
|
||
|
set diffopt+=vertical
|
||
|
set encoding=utf-8
|
||
|
set expandtab
|
||
|
set exrc
|
||
|
set fillchars=vert:▐
|
||
|
set history=50
|
||
|
set incsearch
|
||
|
set laststatus=2
|
||
|
set list listchars=tab:»·,trail:·,nbsp:·
|
||
|
set modelines=0
|
||
|
set mouse=a
|
||
|
set nobackup
|
||
|
set nojoinspaces
|
||
|
set nomodeline
|
||
|
set noswapfile
|
||
|
set nowritebackup
|
||
|
set number
|
||
|
set numberwidth=5
|
||
|
set ruler
|
||
|
set shiftround
|
||
|
set shiftwidth=2
|
||
|
set showbreak=··
|
||
|
set showcmd
|
||
|
set signcolumn=yes
|
||
|
set splitbelow
|
||
|
set splitright
|
||
|
set tabstop=2
|
||
|
set termencoding=utf-8
|
||
|
set termguicolors
|
||
|
set textwidth=80
|
||
|
set title
|
||
|
set ttyfast
|
||
|
set vb t_vb=
|
||
|
|
||
|
syntax enable
|
||
|
syntax sync minlines=128 maxlines=512
|
||
|
|
||
|
let mapleader = " "
|
||
|
|
||
|
" Cursor shapes
|
||
|
let &t_SI = "\<Esc>[6 q"
|
||
|
let &t_SR = "\<Esc>[4 q"
|
||
|
let &t_EI = "\<Esc>[0 q"
|
||
|
|
||
|
" True color support
|
||
|
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
|
||
|
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
|
||
|
|
||
|
" Auto-toggle paste mode
|
||
|
let &t_SI .= "\<Esc>[?2004h"
|
||
|
let &t_EI .= "\<Esc>[?2004l"
|
||
|
|
||
|
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
|
||
|
|
||
|
function! XTermPasteBegin()
|
||
|
set pastetoggle=<Esc>[201~
|
||
|
set paste
|
||
|
return ""
|
||
|
endfunction
|
||
|
|
||
|
" Plugins
|
||
|
call plug#begin('~/.vim/plugged')
|
||
|
if filereadable(expand("~/.vimrc.plugins"))
|
||
|
source ~/.vimrc.plugins
|
||
|
endif
|
||
|
call plug#end()
|
||
|
|
||
|
" Lightline setup
|
||
|
if filereadable(expand("~/.vimrc.lightline"))
|
||
|
source ~/.vimrc.lightline
|
||
|
endif
|
||
|
|
||
|
" Color setup
|
||
|
if filereadable(expand("~/.vimrc.colors"))
|
||
|
source ~/.vimrc.colors
|
||
|
endif
|
||
|
|
||
|
" Set secure AFTER any other rc importing
|
||
|
set secure
|