dotfiles/vimrc
2021-06-17 16:22:17 -05:00

105 lines
1.9 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
" 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')
if filereadable(expand("~/.config/nvim/plugins"))
source ~/.config/nvim/plugins
endif
call plug#end()
" Keybindings
if filereadable(expand("~/.config/nvim/keybindings"))
source ~/.config/nvim/keybindings
endif
" CoC
if filereadable(expand("~/.config/nvim/coc"))
source ~/.config/nvim/coc
endif
" Lightline setup
if filereadable(expand("~/.config/nvim/lightline"))
source ~/.config/nvim/lightline
endif
" Tmuxline setup
if filereadable(expand("~/.config/nvim/tmuxline"))
source ~/.config/nvim/tmuxline
endif
" Git setup
if filereadable(expand("~/.config/nvim/git"))
source ~/.config/nvim/git
endif
" NERDTree setup
if filereadable(expand("~/.config/nvim/nerdtree"))
source ~/.config/nvim/nerdtree
endif
" Ack setup
if filereadable(expand("~/.config/nvim/ack"))
source ~/.config/nvim/ack
endif
" Test setup
if filereadable(expand("~/.config/nvim/test"))
source ~/.config/nvim/test
endif
" Color setup
if filereadable(expand("~/.config/nvim/colors"))
source ~/.config/nvim/colors
endif
" Set secure AFTER any other rc importing
set secure