# HG changeset patch # User Steve Losh # Date 1353346806 18000 # Node ID fe6c2182539e03241391ca036b6746c0d7d17258 # Parent e38d6bb92f91c17216bf70148c34d01ed53803ce More. diff -r e38d6bb92f91 -r fe6c2182539e .hgsubstate --- a/.hgsubstate Tue Nov 06 18:00:14 2012 -0500 +++ b/.hgsubstate Mon Nov 19 12:40:06 2012 -0500 @@ -3,7 +3,7 @@ 4d95cb18a3b420154ef978c53de1d2e692f8343d mercurial/templates 64981213be2efd939e6e6e109e2b32c24e95fd95 vim/bundle/AnsiEsc.vim 9895285042a2fd5691b2f6582aa979e4d1bdffea vim/bundle/ack -9e4a52112a78ce74db15ce9af3d81dacc982a1d3 vim/bundle/badwolf +edced74507462215bb2431b5db34fdef18baeaf0 vim/bundle/badwolf 8533fffd9fbb690dfc8e334f91a10c72e35a6dce vim/bundle/clam dc349bb7d30f713d770fc1fa0fe209e6aab82dc8 vim/bundle/commentary 3c6182371db8e8ede3789d21b52386569eda2208 vim/bundle/ctrlp @@ -27,7 +27,7 @@ 6eec2c131213850ed65fd6da494dfd1a0d620a4e vim/bundle/strftimedammit 7ee7f774dd1288ea2e7c57b63cb069a07d425ca0 vim/bundle/supertab 1a73f607f8f5477d6942df2eb6e7245c4864f4d3 vim/bundle/surround -c2a16e88f8d2d5bb4cfaaa1a1e952a674d001dd0 vim/bundle/syntastic +0a7b21d6021a3a565db066e7b8f7f158c918037c vim/bundle/syntastic 2dee007ddae8156735cbae7f0cd4e0a24ba7287b vim/bundle/tslime 1dae3b9a0e6fd9d05698bd45d501e232787f317a vim/bundle/vitality 8ebc225b364887c0557ab47ab2ca752a70123bee vim/bundle/yankring diff -r e38d6bb92f91 -r fe6c2182539e bin/peat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/peat Mon Nov 19 12:40:06 2012 -0500 @@ -0,0 +1,1 @@ +../../../src/peat/peat \ No newline at end of file diff -r e38d6bb92f91 -r fe6c2182539e fish/config.fish --- a/fish/config.fish Tue Nov 06 18:00:14 2012 -0500 +++ b/fish/config.fish Mon Nov 19 12:40:06 2012 -0500 @@ -147,6 +147,7 @@ prepend_to_path "$HOME/lib/hg/hg" prepend_to_path "$HOME/Library/Haskell/bin" prepend_to_path "/usr/local/Cellar/ruby/1.9.3-p194/bin" +prepend_to_path "/Applications/Postgres.app/Contents/MacOS/bin" set BROWSER open diff -r e38d6bb92f91 -r fe6c2182539e gitconfig --- a/gitconfig Tue Nov 06 18:00:14 2012 -0500 +++ b/gitconfig Mon Nov 19 12:40:06 2012 -0500 @@ -20,7 +20,7 @@ l = log -18 --color=always --all --topo-order --pretty='format:%Cgreen%h%Creset %s%Cred%d%Creset %C(black bold)(by %an)%Creset' ll = log --color=always --all --topo-order --pretty='format:%Cgreen%h%Creset %s%Cred%d%Creset %C(black bold)(by %an)%Creset' gl = log -12 --color=always --all --graph --topo-order --pretty='format:%Cgreen%h%Creset %s %C(black bold)(by %an)%Creset%C(yellow bold)%d%Creset%n' - gll = log --color=always --all --graph --topo-order --pretty='format:%Cgreen%h%Creset %s %C(black bold)(by %an)%Creset%C(yellow bold)%d%Creset%n' + gll = log --color=always --all --graph --topo-order --pretty='format:%Cgreen%h%Creset %s %C(black bold)(%cr by %an)%Creset%C(yellow bold)%d%Creset%n' pull = pull --ff-only up = merge --ff-only diff -r e38d6bb92f91 -r fe6c2182539e vim/bundle/lispyscript/ftdetect/lispyscript.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vim/bundle/lispyscript/ftdetect/lispyscript.vim Mon Nov 19 12:40:06 2012 -0500 @@ -0,0 +1,1 @@ +autocmd BufNewFile,BufRead *.ls set filetype=lispyscript diff -r e38d6bb92f91 -r fe6c2182539e vim/bundle/lispyscript/ftplugin/lispyscript.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vim/bundle/lispyscript/ftplugin/lispyscript.vim Mon Nov 19 12:40:06 2012 -0500 @@ -0,0 +1,8 @@ +if exists("b:did_lispyscript_ftplugin") + finish +endif + + +setlocal iskeyword+=-,>,?,=,!,<,>,+,*,/,%,&,| + +let b:did_lispyscript_ftplugin = 1 diff -r e38d6bb92f91 -r fe6c2182539e vim/bundle/lispyscript/indent/lispyscript.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vim/bundle/lispyscript/indent/lispyscript.vim Mon Nov 19 12:40:06 2012 -0500 @@ -0,0 +1,35 @@ +" For now we'll just use normal Lisp indenting because it's 1 AM and I want to +" go to bed. +" +" TODO: Steal VimClojure's magic indenting. + +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 + +let s:save_cpo = &cpo +set cpo&vim + +setlocal expandtab nosmartindent + +setlocal softtabstop=2 +setlocal shiftwidth=2 + +setlocal indentkeys=!,o,O + +setlocal autoindent +setlocal indentexpr= +setlocal lisp + +" Special words go here. +setlocal lispwords=function,macro,do,->,var +setlocal lispwords+=if,cond,when,unless +setlocal lispwords+=try +setlocal lispwords+=loop,each,each2d,eachKey,reduce,map,for + +" Custom: +setlocal lispwords+=defn + +let &cpo = s:save_cpo + diff -r e38d6bb92f91 -r fe6c2182539e vim/bundle/lispyscript/syntax/lispyscript.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vim/bundle/lispyscript/syntax/lispyscript.vim Mon Nov 19 12:40:06 2012 -0500 @@ -0,0 +1,58 @@ +if exists("b:current_syntax") + finish +endif + +syntax keyword lispyscriptDefFunction function + +syntax keyword lispyscriptDefMacro macro + +syntax keyword lispyscriptKeyword do -> new object str var +syntax keyword lispyscriptKeyword array arrayInit arrayInit2d +syntax keyword lispyscriptTesting assert testGroup testRunner +syntax keyword lispyscriptTemplating template template-repeat template-repeat-key + +syntax keyword lispyscriptOperator undefined? null? true? false? zero? boolean? +syntax keyword lispyscriptOperator number? string? object? array? function? +syntax keyword lispyscriptOperator = ! != > < <= >= + - * / % && +syntax match lispyscriptOperator "\v([ \t()]|^)\zs\|\|\ze([ \t()]|$)" + +syntax keyword lispyscriptConstant null undefined + +syntax keyword lispyscriptBoolean true false + +syntax keyword lispyscriptRepeat loop each each2d eachKey reduce map for + +syntax keyword lispyscriptConditional if cond when unless + +syntax keyword lispyscriptException try catch throw + +syntax keyword lispyscriptImport include + +syntax match lispyscriptComment "\v;.*$" + +syntax match lispyscriptNumber "\v<-?\d+(\.\d+)?>" + +syntax region lispyscriptString start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ + +" Custom words go here... +syntax keyword lispyscriptKeyword defn +syntax keyword lispyscriptKeyword onload + +highlight link lispyscriptKeyword Keyword +highlight link lispyscriptTesting Keyword +highlight link lispyscriptTemplating Keyword +highlight link lispyscriptDefFunction Keyword +highlight link lispyscriptDefMacro Keyword +highlight link lispyscriptOperator Operator +highlight link lispyscriptConditional Conditional +highlight link lispyscriptException Exception +highlight link lispyscriptImport Include +highlight link lispyscriptBoolean Boolean +highlight link lispyscriptRepeat Repeat +highlight link lispyscriptNumber Number +highlight link lispyscriptComment Comment +highlight link lispyscriptString String +highlight link lispyscriptConstant Constant + +let b:current_syntax = "lispyscript" + diff -r e38d6bb92f91 -r fe6c2182539e vim/custom-dictionary.utf-8.add --- a/vim/custom-dictionary.utf-8.add Tue Nov 06 18:00:14 2012 -0500 +++ b/vim/custom-dictionary.utf-8.add Mon Nov 19 12:40:06 2012 -0500 @@ -114,3 +114,8 @@ repos plugin's VCS +namespacing +autocommands +autocommand +reindent +Javascript diff -r e38d6bb92f91 -r fe6c2182539e vim/vimrc --- a/vim/vimrc Tue Nov 06 18:00:14 2012 -0500 +++ b/vim/vimrc Mon Nov 19 12:40:06 2012 -0500 @@ -251,11 +251,6 @@ " Toggle line numbers nnoremap n :setlocal number! -" Front and center -" Use :sus for the rare times I want to actually background Vim. -nnoremap zMzvzz25 -vnoremap zv`s vip:!sort vnoremap s :!sort @@ -579,6 +574,18 @@ " cursor happens to be. nnoremap zO zCzO +" "Focus" the current line. Basically: +" +" 1. Close all folds. +" 2. Open just the folds containing the current line. +" 3. Move the line to a little bit (15 lines) above the center of the screen. +" 4. Pulse the cursor line. My eyes are bad. +" +" This mapping wipes out the z mark, which I never use. +" +" I use :sus for the rare times I want to actually background Vim. +nnoremap mzzMzvzz15`z:Pulse + function! MyFoldText() " {{{ let line = getline(v:foldstart) @@ -777,7 +784,7 @@ augroup END " }}} -" HTML and HTMLDjango {{{ +" HTML, Django, Jinja, Dram {{{ let g:html_indent_tags = ['p', 'li'] @@ -785,6 +792,8 @@ au! au BufNewFile,BufRead *.html setlocal filetype=htmldjango + au BufNewFile,BufRead *.dram setlocal filetype=htmldjango + au FileType html,jinja,htmldjango setlocal foldmethod=manual " Use f to fold the current tag. @@ -862,7 +871,7 @@ augroup ft_markdown au! - au BufNewFile,BufRead *.m*down setlocal filetype=markdown + au BufNewFile,BufRead *.m*down setlocal filetype=markdown foldlevel=1 " Use 1/2/3 to add headings. au Filetype markdown nnoremap 1 yypVr=:redraw @@ -1653,7 +1662,7 @@ diffupdate endfunction " }}} command! -nargs=0 HgDiff call s:HgDiff() -nnoremap hd :HgDiff +" nnoremap hd :HgDiff function! s:HgBlame() " {{{ let fn = expand('%:p') @@ -1675,7 +1684,7 @@ syncbind endfunction " }}} command! -nargs=0 HgBlame call s:HgBlame() -nnoremap hb :HgBlame +" nnoremap hb :HgBlame " }}} " Ack motions {{{ @@ -1760,6 +1769,37 @@ nnoremap B :call BlockColor() " }}} +" Pulse Line {{{ + +function! s:Pulse() " {{{ + redir => old_hi + silent execute 'hi CursorLine' + redir END + let old_hi = split(old_hi, '\n')[0] + let old_hi = substitute(old_hi, 'xxx', '', '') + + let steps = 9 + let width = 1 + let start = width + let end = steps * width + let color = 233 + + for i in range(start, end, width) + execute "hi CursorLine ctermbg=" . (color + i) + redraw + sleep 6m + endfor + for i in range(end, start, -1 * width) + execute "hi CursorLine ctermbg=" . (color + i) + redraw + sleep 6m + endfor + + execute 'hi ' . old_hi +endfunction " }}} +command! -nargs=0 Pulse call s:Pulse() + +" }}} " }}} " Environments (GUI/Console) ---------------------------------------------- {{{