3e9f6887f7d2

A bunch of stuff.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 25 Aug 2010 11:21:56 -0400
parents d7bd5a0f22b1
children f14da576aebe
branches/tags (none)
files .hgrc vim/.vimrc vim/ftplugin/python.vim

Changes

--- a/.hgrc	Tue Aug 24 15:14:31 2010 -0400
+++ b/.hgrc	Wed Aug 25 11:21:56 2010 -0400
@@ -167,3 +167,7 @@
 # Install t first: http://bitbucket.org/sjl/t/
 bug = !~/lib/t/t.py --task-dir="`$HG root`" --list=BUGS $@
 todo = !~/lib/t/t.py --task-dir="`$HG root`" --list=TODO $@
+
+# Easily add ignore patterns.
+ignore = ![ -n "$@" ] && echo '$@' >> `$HG root`/.hgignore && \
+          $HG commit `$HG root`/.hgignore -Am 'Add "$@" to .hgignore.'
--- a/vim/.vimrc	Tue Aug 24 15:14:31 2010 -0400
+++ b/vim/.vimrc	Wed Aug 25 11:21:56 2010 -0400
@@ -97,7 +97,6 @@
 vnoremap <Space> za
 au BufNewFile,BufRead *.html map <leader>ft Vatzf
 
-set foldtext=MyFoldText()
 function! MyFoldText()
     let line = getline(v:foldstart)
 
@@ -110,9 +109,10 @@
     let line = substitute(line, '\t', onetab, 'g')
 
     let line = strpart(line, 0, windowwidth - 2 -len(foldedlinecount))
-    let fillcharcount = windowwidth - len(line) - len(foldedlinecount) - 1
+    let fillcharcount = windowwidth - len(line) - len(foldedlinecount) - 4
     return line . '…' . repeat(" ",fillcharcount) . foldedlinecount . '…' . ' '
 endfunction
+set foldtext=MyFoldText()
 
 " Fuck you, help key.
 inoremap <F1> <ESC>:set invfullscreen<CR>a
--- a/vim/ftplugin/python.vim	Tue Aug 24 15:14:31 2010 -0400
+++ b/vim/ftplugin/python.vim	Wed Aug 25 11:21:56 2010 -0400
@@ -64,7 +64,7 @@
     let line = substitute(line, '\t', onetab, 'g')
 
     let line = strpart(line, 0, windowwidth - 2 -len(foldedlinecount))
-    let fillcharcount = windowwidth - len(line) - len(foldedlinecount) - 1
+    let fillcharcount = windowwidth - len(line) - len(foldedlinecount) - 4
     return line . '…' . repeat(" ",fillcharcount) . foldedlinecount . '…' . ' '
 endfunction