Update vimrc
This commit is contained in:
		
							parent
							
								
									f499dfad96
								
							
						
					
					
						commit
						77de34f37f
					
				
							
								
								
									
										21
									
								
								env.loader
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								env.loader
									
									
									
									
									
								
							| 
						 | 
					@ -13,18 +13,13 @@ esac
 | 
				
			||||||
export PLATFORM=$platform
 | 
					export PLATFORM=$platform
 | 
				
			||||||
export PLATFORM_OS=$platform_os
 | 
					export PLATFORM_OS=$platform_os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test -f $HOME/.env.platform    && . $HOME/.env.platform
 | 
					test -f "$HOME/.env.platform"    && . $HOME/.env.platform
 | 
				
			||||||
test -f $HOME/.env.common      && . $HOME/.env.common
 | 
					test -f "$HOME/.env.common"      && . $HOME/.env.common
 | 
				
			||||||
test -f $HOME/.env.private     && . $HOME/.env.private
 | 
					test -f "$HOME/.env.private"     && . $HOME/.env.private
 | 
				
			||||||
test -f $HOME/.aliases         && . $HOME/.aliases
 | 
					test -f "$HOME/.aliases"         && . $HOME/.aliases
 | 
				
			||||||
test -f $HOME/.aliases.common  && . $HOME/.aliases.common
 | 
					test -f "$HOME/.aliases.common"  && . $HOME/.aliases.common
 | 
				
			||||||
test -f $HOME/.aliases.private && . $HOME/.aliases.private
 | 
					test -f "$HOME/.aliases.private" && . $HOME/.aliases.private
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [[ -d "$HOME/bin" ]]; then
 | 
					test -d "$HOME/bin"              && export PATH=$HOME/bin/:$PATH
 | 
				
			||||||
    export PATH=$HOME/bin/:$PATH
 | 
					test -d "$HOME/.dotfiles/bin"    && export PATH=$HOME/.dotfiles/bin/:$PATH
 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if [[ -d "$HOME/.dotfiles/bin" ]]; then
 | 
					 | 
				
			||||||
    export PATH=$HOME/.dotfiles/bin/:$PATH
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										5
									
								
								vimrc
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								vimrc
									
									
									
									
									
								
							| 
						 | 
					@ -364,6 +364,9 @@ augroup campoCmds
 | 
				
			||||||
        " The ampersand at the end is to make this run in the background. I had to
 | 
					        " The ampersand at the end is to make this run in the background. I had to
 | 
				
			||||||
        " group the commands in parens to make the chained commands run in the
 | 
					        " group the commands in parens to make the chained commands run in the
 | 
				
			||||||
        " background.
 | 
					        " background.
 | 
				
			||||||
 | 
					        " @improve: don't run a bunch of ctags for the same project when mass
 | 
				
			||||||
 | 
					        " saving files. They all try to write and move newtags which tends to
 | 
				
			||||||
 | 
					        " lock up vim and/or spew errors.
 | 
				
			||||||
        let l:ctags_cmd = "!(ctags --c-types=+l --c++-types=+l --exclude=*.md --exclude=*.txt --exclude=*.config --exclude=*.css --exclude=*.html --exclude=*.htm --exclude=*.json --exclude=node_modules --exclude=.git --exclude=.cache " . g:campo_custom_ctags_args . " --recurse=yes -o newtags; mv newtags tags) &"
 | 
					        let l:ctags_cmd = "!(ctags --c-types=+l --c++-types=+l --exclude=*.md --exclude=*.txt --exclude=*.config --exclude=*.css --exclude=*.html --exclude=*.htm --exclude=*.json --exclude=node_modules --exclude=.git --exclude=.cache " . g:campo_custom_ctags_args . " --recurse=yes -o newtags; mv newtags tags) &"
 | 
				
			||||||
        exec l:ctags_cmd | redraw!
 | 
					        exec l:ctags_cmd | redraw!
 | 
				
			||||||
    endfun
 | 
					    endfun
 | 
				
			||||||
| 
						 | 
					@ -1015,7 +1018,7 @@ function! GlobalReplaceIt(confirm_replacement)
 | 
				
			||||||
        endif
 | 
					        endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        execute 'Ggrep '.l:term
 | 
					        execute 'Ggrep '.l:term
 | 
				
			||||||
        execute 'Qargs | argdo %s/'.l:term.'/'.l:replacement.'/g'.l:confirm_opt.' | update'
 | 
					        execute 'Qargs | argdo %s/'.l:term.'/'.l:replacement.'/g'.l:confirm_opt
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        echo "Unable to search since you're not in a git repo"
 | 
					        echo "Unable to search since you're not in a git repo"
 | 
				
			||||||
    endif
 | 
					    endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user