add: vim plugin
fix: some sudo alias stuff
This commit is contained in:
		
							parent
							
								
									423da27b64
								
							
						
					
					
						commit
						41dcdc46b4
					
				
					 2 changed files with 30 additions and 2 deletions
				
			
		|  | @ -24,8 +24,9 @@ alias lsblk='lsblk -o +PARTLABEL -o +FSTYPE' | ||||||
| alias md5='ms5' | alias md5='ms5' | ||||||
| alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir' | 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 ssh-sftp='$(read -t 2 -r tool; if [[ -z "$tool" ]]; then tool="ssh"; fi; echo $tool)' | ||||||
|  | alias sudo='sudo ' | ||||||
| 
 | 
 | ||||||
| alias rm='rm -I' | alias rm='rm -I' | ||||||
|  |  | ||||||
|  | @ -32,6 +32,8 @@ call plug#begin('~/.config/vim/plugged') | ||||||
|     Plug 'scrooloose/nerdtree' |     Plug 'scrooloose/nerdtree' | ||||||
|     Plug 'itchyny/lightline.vim' |     Plug 'itchyny/lightline.vim' | ||||||
|     Plug 'nanotech/jellybeans.vim' |     Plug 'nanotech/jellybeans.vim' | ||||||
|  |     Plug 'scrooloose/syntastic' | ||||||
|  |     Plug 'tpope/vim-fugitive' | ||||||
| call plug#end() | call plug#end() | ||||||
| 
 | 
 | ||||||
| " Nerd Tree Configuration | " Nerd Tree Configuration | ||||||
|  | @ -39,6 +41,26 @@ map <C-n> :NERDTreeToggle<CR> | ||||||
| autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | ||||||
| 
 | 
 | ||||||
| set laststatus=2 | 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 | if has('termguicolors') && &termguicolors | ||||||
|     let g:jellybeans_overrides['background']['guibg'] = 'none' |     let g:jellybeans_overrides['background']['guibg'] = 'none' | ||||||
|  | @ -57,5 +79,10 @@ let g:jellybeans_overrides = { | ||||||
| \       'ctermbg': 'none', | \       'ctermbg': 'none', | ||||||
| \       '256ctermbg': 'none' | \       '256ctermbg': 'none' | ||||||
| \   }, | \   }, | ||||||
| \} | \ } | ||||||
| colorscheme jellybeans | 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 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue