Skip to content

Commit

Permalink
Update dot.vimrc and dot.zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Vegard Sandengen committed Mar 31, 2016
1 parent f4177ed commit 742e85f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dot.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ func! DeleteTrailingWS()
endfunc
autocmd BufWrite *.py :call DeleteTrailingWS()
autocmd BufWrite *.coffee :call DeleteTrailingWS()
autocmd BufWrite *.rb :call DeleteTrailingWS()
autocmd BufWrite *.c :call DeleteTrailingWS()
autocmd BufWrite *.xml :call DeleteTrailingWS()


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down Expand Up @@ -343,6 +346,14 @@ map <leader>pp :setlocal paste!<cr>

set colorcolumn=20

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Regex
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Force using the old regex engine.
" Canonical ruby gives the new engine a hard time - its slow!
set re=1


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down
13 changes: 12 additions & 1 deletion dot.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,15 @@ source $ZSH/oh-my-zsh.sh
# ############################
alias open="open_command"
alias vim="gvim -v"
# alias ohmyzsh="mate ~/.oh-my-zsh"

function ws-replace {
sed --in-place 's/[[:space:]]\+$//' $1
}
function ws-rreplace {
find $1 -type f -exec sed --in-place 's/[[:space:]]\+$//' {} \+
}

# functions
function gui {
javaws http://$1/mcs-gui/mcs-gui.jnlp\?user\=meos
}

0 comments on commit 742e85f

Please sign in to comment.