Update vim with ack, git, keybindings, nerdtree

This commit is contained in:
2021-06-16 16:30:55 -05:00
parent 51d1be03bd
commit 143ec2f33f
7 changed files with 72 additions and 23 deletions

38
vimrc
View File

@ -43,29 +43,11 @@ 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("~/.config/nvim/plugins"))
@ -73,6 +55,11 @@ if filereadable(expand("~/.config/nvim/plugins"))
endif
call plug#end()
" Keybindings
if filereadable(expand("~/.config/nvim/keybindings"))
source ~/.config/nvim/keybindings
endif
" Lightline setup
if filereadable(expand("~/.config/nvim/lightline"))
source ~/.config/nvim/lightline
@ -83,6 +70,21 @@ 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
" Color setup
if filereadable(expand("~/.config/nvim/colors"))
source ~/.config/nvim/colors