dotfiles/vim/vimrc
2018-06-20 14:26:59 -04:00

51 lines
1.2 KiB
VimL

if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
set number
set relativenumber
set tabstop=4
set shiftwidth=4
set hidden
set showtabline=1
set termguicolors
if has('nvim')
set inccommand=split
endif
call plug#begin('~/.config/nvim/plugged')
Plug 'machakann/vim-highlightedyank'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'morhetz/gruvbox'
Plug 'tpope/vim-fugitive'
Plug 'mhinz/vim-signify'
call plug#end()
"Gruvbox config
colorscheme gruvbox
set background=dark
let g:gruvbox_contrast_dark = 'soft'
"Airline settings
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
"CtrlP settings
let g:ctrlp_open_new_file = 'v'
let g:ctrlp_open_multiple_files = '2v'
let g:ctrlp_arg_map = 1
if executable('rg')
let g:ctrlp_user_command = 'rg --files %s'
let g:ctrlp_use_caching = 1
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_switch_buffer = 'et'
endif