diff --git a/.config/aliasrc b/.config/aliasrc index d9c382a..552a4f9 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -24,8 +24,9 @@ alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE' alias md5='ms5' alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir' -alias pacman-autoremove='sudo pacman -Rns $(pacman -Qtdq)' +alias pacman-autoremove='pacman -Rns $(pacman -Qtdq)' alias ssh-sftp='$(read -t 2 -r tool; if [[ -z "$tool" ]]; then tool="ssh"; fi; echo $tool)' +alias sudo='sudo ' alias rm='rm -I' diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 770174d..4a68f6e 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -32,6 +32,8 @@ call plug#begin('~/.config/vim/plugged') Plug 'scrooloose/nerdtree' Plug 'itchyny/lightline.vim' Plug 'nanotech/jellybeans.vim' + Plug 'scrooloose/syntastic' + Plug 'tpope/vim-fugitive' call plug#end() " Nerd Tree Configuration @@ -39,6 +41,26 @@ map :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif set laststatus=2 +let g:lightline = { +\ 'active': { +\ 'left': [ +\ [ 'mode', 'paste' ], +\ [ 'readonly', 'filename', 'modified', 'gitbranch' ] +\ ], +\ 'right': [ +\ [ 'percent', 'lineinfo' ], +\ [ 'fileformat', 'fileencoding', 'filetype', 'synthastic' ], +\ [ 'charvaluehex' ] +\ ] +\ }, +\ 'component': { +\ 'charvaluehex': '0x%B', +\ }, +\ 'component_function': { +\ 'synthastic': 'SyntasticStatuslineFlag', +\ 'gitbranch': 'fugitive#head' +\ }, +\ } if has('termguicolors') && &termguicolors let g:jellybeans_overrides['background']['guibg'] = 'none' @@ -57,5 +79,10 @@ let g:jellybeans_overrides = { \ 'ctermbg': 'none', \ '256ctermbg': 'none' \ }, -\} +\ } colorscheme jellybeans + +let g:syntastic_always_populate_loc_list = 0 +let g:syntastic_auto_loc_list = 0 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0