Cleaner port-forward, 80 char warn in vim
This commit is contained in:
parent
f96b40dbfa
commit
8a68ee3183
3 changed files with 17 additions and 9 deletions
3
.aliases
3
.aliases
|
@ -50,10 +50,11 @@ alias sz="source ~/.zshrc"
|
||||||
alias t="tmux"
|
alias t="tmux"
|
||||||
alias tls="tmux list-sessions"
|
alias tls="tmux list-sessions"
|
||||||
alias v="vim"
|
alias v="vim"
|
||||||
alias vu="vagrant up"
|
|
||||||
alias vd="vagrant destroy"
|
alias vd="vagrant destroy"
|
||||||
alias vh="vagrant halt"
|
alias vh="vagrant halt"
|
||||||
|
alias vn="vim -u NONE"
|
||||||
alias vp="vagrant provision"
|
alias vp="vagrant provision"
|
||||||
|
alias vu="vagrant up"
|
||||||
alias vs="vagrant status"
|
alias vs="vagrant status"
|
||||||
alias vssh="vagrant ssh"
|
alias vssh="vagrant ssh"
|
||||||
alias w="python -m SimpleHTTPServer"
|
alias w="python -m SimpleHTTPServer"
|
||||||
|
|
|
@ -13,7 +13,11 @@ insert-sudo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function port-forward {
|
function port-forward {
|
||||||
ssh $1 -R $2":localhost:"$2 -g
|
if [ $# -lt 2 ]; then
|
||||||
|
echo Usage: port-forward HOST LOCAL_PORT \[REMOTE_PORT\]
|
||||||
|
else
|
||||||
|
ssh $1 -R ${3:-$2}":localhost:"$2 -g
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function map-sshfs {
|
function map-sshfs {
|
||||||
|
|
17
.vimrc
17
.vimrc
|
@ -185,14 +185,17 @@ endfunction
|
||||||
|
|
||||||
" Set special case colors
|
" Set special case colors
|
||||||
function! SetColors()
|
function! SetColors()
|
||||||
hi CursorLine cterm=NONE ctermbg=234
|
highlight CursorLine cterm=NONE ctermbg=234
|
||||||
hi CursorColumn cterm=NONE ctermbg=234
|
highlight CursorColumn cterm=NONE ctermbg=234
|
||||||
hi StatusLine ctermfg=white ctermbg=236
|
highlight StatusLine ctermfg=white ctermbg=236
|
||||||
hi SignColumn ctermbg=black
|
highlight SignColumn ctermbg=black
|
||||||
hi ColorColumn ctermbg=234
|
highlight ColorColumn ctermbg=234
|
||||||
hi IndentGuidesOdd ctermbg=black
|
highlight IndentGuidesOdd ctermbg=black
|
||||||
hi IndentGuidesEven ctermbg=234
|
highlight IndentGuidesEven ctermbg=234
|
||||||
|
highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Needs to come after SetColors definition
|
" Needs to come after SetColors definition
|
||||||
call SetColors()
|
call SetColors()
|
||||||
|
|
||||||
|
match OverLength /\%81v.*/
|
||||||
|
|
Loading…
Reference in a new issue