Added better tmux defaults, gitconfig, and vimrc with improved setup script

This commit is contained in:
2023-02-16 17:00:39 -08:00
parent d5f5cf2ef6
commit 0e39019e63
4 changed files with 46 additions and 12 deletions

15
vimrc
View File

@@ -29,6 +29,14 @@ map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
silent! helptags ALL
"
if &term =~ '^screen'
" tmux will send xterm-style keys when its xterm-keys option is on
execute "set <xUp>=\e[1;*A"
execute "set <xDown>=\e[1;*B"
execute "set <xRight>=\e[1;*C"
execute "set <xLeft>=\e[1;*D"
endif
" Nerdtree
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTreeToggle<CR>
@@ -80,6 +88,13 @@ let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
nnoremap <C-y> :SyntasticToggleMode<CR>
"" Optional. Configure before enabling
" let g:syntastic_cpp_checkers = ['clang_tidy']
" let g:syntastic_c_checkers = ['clang_tidy']
" let g:syntastic_cpp_clang_tidy_post_args = ""
" autocmd FileType cpp if stridx(expand("%:p"), "/home/anaber/work/trenton/") == 0 |
" \ let g:syntastic_cpp_clang_tidy_args = "-p /home/anaber/work/trenton" | endif
" vim-airline
let g:airline#extensions#whitespace#enabled = 0
if !exists('g:airline_symbols')