# HG changeset patch # User Steve Losh # Date 1319586200 14400 # Node ID 72ed0a7f6ea97c8907e641c66ace54cfe69f4997 # Parent d5b9b72cba9f1947f583e3a7fea5f6fd843e34dc Moar. diff -r d5b9b72cba9f -r 72ed0a7f6ea9 mutt/muttrc --- a/mutt/muttrc Fri Oct 21 14:58:04 2011 -0400 +++ b/mutt/muttrc Tue Oct 25 19:43:20 2011 -0400 @@ -45,6 +45,9 @@ alternative_order text/plain text/enriched text/html # save html for last set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" +# alternate emails +alternates sjl@pculture.org still\.?life@gmail.com steve@ladyluckblues.com + # formats set date_format = "%m/%d" set index_format = "[%Z] %D %-20.20F %s" diff -r d5b9b72cba9f -r 72ed0a7f6ea9 vim/.vimrc --- a/vim/.vimrc Fri Oct 21 14:58:04 2011 -0400 +++ b/vim/.vimrc Tue Oct 25 19:43:20 2011 -0400 @@ -51,19 +51,27 @@ set dictionary=/usr/share/dict/words " Wildmenu completion {{{ + set wildmenu set wildmode=list:longest set wildignore+=.hg,.git,.svn " Version control set wildignore+=*.aux,*.out,*.toc " LaTeX intermediate files set wildignore+=*.jpg,*.bmp,*.gif,*.png,*.jpeg " binary images -set wildignore+=*.luac " Lua byte code set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest " compiled object files -set wildignore+=*.pyc " Python byte code set wildignore+=*.spl " compiled spelling word lists set wildignore+=*.sw? " Vim swap files set wildignore+=*.DS_Store " OSX bullshit + +set wildignore+=*.luac " Lua byte code + set wildignore+=migrations " Django migrations +set wildignore+=*.pyc " Python byte code + +" Clojure/Leiningen +set wildignore+=classes +set wildignore+=lib + " }}} " Make Vim able to edit crontab files again. @@ -869,6 +877,8 @@ let g:ctrlp_map = ',' let g:ctrlp_working_path_mode = 0 +let g:ctrlp_match_window_reversed = 1 +let g:ctrlp_split_window = 0 " }}} " Easymotion {{{ @@ -1108,6 +1118,45 @@ " }}} " }}} +" Ack motions ------------------------------------------------------------- {{{ + +" Motions to Ack for things. Works with pretty much everything, including: +" +" w, W, e, E, b, B, t*, f*, i*, a*, and custom text objects +" +" Awesome. +" +" Note: If the text covered by a motion contains a newline it won't work. Ack +" searches line-by-line. + +nnoremap \a :set opfunc=AckMotiong@ +xnoremap \a :call AckMotion(visualmode()) + +function! s:CopyMotionForType(type) + if a:type ==# 'v' + " From visual mode + silent execute "normal! `<" . a:type . "`>y" + elseif a:type ==# 'line' + " Linewise motion + silent execute "normal! '[V']y" + else + " Charwise motion + silent execute "normal! `[v`]y" + endif +endfunction + +function! s:AckMotion(type) abort + let reg_save = @@ + + call s:CopyMotionForType(a:type) + + let pattern = escape(@@, "'") + execute "normal! :Ack! --literal '" . pattern . "'\" + + let @@ = reg_save +endfunction + +" }}} " Error toggles ----------------------------------------------------------- {{{ command! ErrorsToggle call ErrorsToggle() diff -r d5b9b72cba9f -r 72ed0a7f6ea9 zsh/vagrant.zsh --- a/zsh/vagrant.zsh Fri Oct 21 14:58:04 2011 -0400 +++ b/zsh/vagrant.zsh Tue Oct 25 19:43:20 2011 -0400 @@ -7,3 +7,5 @@ function turnoffthedamnboxvagrant () { VBoxManage list vms | grep "$1" | cut -d' ' -f1 | tr -d '"\n ' | xargs -0 -I BOX VBoxManage controlvm BOX poweroff } + +alias biv='bcvi --install vagrant'