2021-06-14 14:20:50 -05:00
|
|
|
set autoread
|
|
|
|
set autowrite
|
|
|
|
set backspace=2
|
|
|
|
set breakindent
|
|
|
|
set clipboard=unnamed
|
2021-07-06 00:29:14 -05:00
|
|
|
set cmdheight=2
|
2021-06-14 14:20:50 -05:00
|
|
|
set colorcolumn=+1
|
|
|
|
set complete+=kspell
|
|
|
|
set cursorline
|
|
|
|
set diffopt+=vertical
|
|
|
|
set encoding=utf-8
|
|
|
|
set expandtab
|
|
|
|
set exrc
|
|
|
|
set fillchars=vert:▐
|
2021-07-06 00:29:14 -05:00
|
|
|
set hidden
|
2021-06-14 14:20:50 -05:00
|
|
|
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
|
2021-07-06 00:29:14 -05:00
|
|
|
set shortmess+=c
|
2021-06-14 14:20:50 -05:00
|
|
|
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
|
2021-07-06 00:29:14 -05:00
|
|
|
set updatetime=300
|
2021-06-14 14:20:50 -05:00
|
|
|
set vb t_vb=
|
|
|
|
|
2021-07-06 00:29:14 -05:00
|
|
|
if has("nvim-0.5.0") || has("patch-8.1.1564")
|
|
|
|
" Recently vim can merge signcolumn and number column into one
|
|
|
|
set signcolumn=number
|
|
|
|
endif
|
|
|
|
|
2021-06-14 14:20:50 -05:00
|
|
|
syntax enable
|
|
|
|
syntax sync minlines=128 maxlines=512
|
|
|
|
|
|
|
|
" Cursor shapes
|
|
|
|
let &t_SI = "\<Esc>[6 q"
|
|
|
|
let &t_SR = "\<Esc>[4 q"
|
|
|
|
let &t_EI = "\<Esc>[0 q"
|
|
|
|
|
|
|
|
" Plugins
|
|
|
|
call plug#begin('~/.vim/plugged')
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/plugins.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/plugins.vimrc
|
2021-06-14 14:20:50 -05:00
|
|
|
endif
|
|
|
|
call plug#end()
|
|
|
|
|
2021-06-16 16:30:55 -05:00
|
|
|
" Keybindings
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/keybindings.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/keybindings.vimrc
|
2021-06-16 16:30:55 -05:00
|
|
|
endif
|
|
|
|
|
2021-06-17 16:22:17 -05:00
|
|
|
" CoC
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/coc.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/coc.vimrc
|
2021-06-17 16:22:17 -05:00
|
|
|
endif
|
|
|
|
|
2021-06-14 14:20:50 -05:00
|
|
|
" Lightline setup
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/lightline.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/lightline.vimrc
|
2021-06-14 14:20:50 -05:00
|
|
|
endif
|
|
|
|
|
2021-06-16 11:31:28 -05:00
|
|
|
" Tmuxline setup
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/tmuxline.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/tmuxline.vimrc
|
2021-06-16 11:31:28 -05:00
|
|
|
endif
|
|
|
|
|
2021-06-16 16:30:55 -05:00
|
|
|
" Git setup
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/git.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/git.vimrc
|
2021-06-16 16:30:55 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
" NERDTree setup
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/nerdtree.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/nerdtree.vimrc
|
2021-06-16 16:30:55 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Ack setup
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/ack.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/ack.vimrc
|
2021-06-16 16:30:55 -05:00
|
|
|
endif
|
|
|
|
|
2021-06-17 15:05:59 -05:00
|
|
|
" Test setup
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/test.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/test.vimrc
|
2021-06-17 15:05:59 -05:00
|
|
|
endif
|
|
|
|
|
2021-06-14 14:20:50 -05:00
|
|
|
" Color setup
|
2021-07-12 15:53:20 -05:00
|
|
|
if filereadable(expand("~/.config/nvim/colors.vimrc"))
|
2021-07-12 15:55:25 -05:00
|
|
|
source ~/.config/nvim/colors.vimrc
|
2021-06-14 14:20:50 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Set secure AFTER any other rc importing
|
|
|
|
set secure
|