72ed0a7f6ea9

Moar.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 25 Oct 2011 19:43:20 -0400
parents d5b9b72cba9f
children 61488a7c8ab9
branches/tags (none)
files mutt/muttrc vim/.vimrc zsh/vagrant.zsh

Changes

--- 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"
--- 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 = '<leader>,'
 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 <silent> \a :<C-U>set opfunc=<SID>AckMotion<CR>g@
+xnoremap <silent> \a :<C-U>call <SID>AckMotion(visualmode())<CR>
+
+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 . "'\<cr>"
+
+    let @@ = reg_save
+endfunction
+
+" }}}
 " Error toggles ----------------------------------------------------------- {{{
 
 command! ErrorsToggle call ErrorsToggle()
--- 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'