Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moar.

  • Loading branch information...
commit 02a07caf8e49720f397ce2b53aa0a72dc87cea33 1 parent 62948ea
@sjl authored
View
1  .hgsub
@@ -5,7 +5,6 @@ vim/bundle/gundo = [hg]http://bitbucket.org/sjl/gundo.vim/
vim/bundle/html5 = [git]git://github.com/othree/html5.vim.git
vim/bundle/markdown = [git]git://github.com/tpope/vim-markdown.git
vim/bundle/vim-commentary = [git]git://github.com/tpope/vim-commentary.git
-vim/bundle/vim-speeddating = [git]git://github.com/tpope/vim-speeddating.git
vim/bundle/nerdtree = [git]git://github.com/scrooloose/nerdtree.git
vim/bundle/surround = [git]git://github.com/tpope/vim-surround.git
vim/bundle/sparkup = [git]git://github.com/sjl/vim-sparkup.git
View
1  .hgsubstate
@@ -27,5 +27,4 @@ b944e534bd6bbfc4fd56d4ee1a8aa831188387b0 vim/bundle/vim-coffee-script
6362ba99c825afc046818807267d5c1143b5c887 vim/bundle/vim-javascript
f21fbd8759d7fa6c3cb1bbb9fe05eae90422f01a vim/bundle/vim-makegreen
80cc08f3fb2205630a1f1cee159d8ff6052d91d0 vim/bundle/vim-orgmode
-b0ee6ec2153c5f30827d67db1668f37a975a1005 vim/bundle/vim-speeddating
280ca1b471bd3a0d2347735e8fcbd03a53f2c6ad vim/bundle/yankring
View
4 bin/longcat
@@ -10,8 +10,8 @@ else:
print r'''
/\___/\
/ \
- | # # |
- \ @ |
+ | o o |
+ \ # |
\ _|_ /
/ \______
/ _______ ___ \
View
21 vim/.vimrc
@@ -58,8 +58,18 @@ set backupskip=/tmp/*,/private/tmp/*"
au FocusLost * :wa
" Resize splits when the window is resized
-au VimResized * exe "normal! \<c-w>="
+au VimResized * :wincmd =
+" Trailing whitespace {{{
+" Only shown when not in insert mode so I don't go insane.
+
+augroup trailing
+ au!
+ au InsertEnter * :set listchars-=trail:
+ au InsertLeave * :set listchars+=trail:
+augroup END
+
+" }}}
" Wildmenu completion {{{
set wildmenu
@@ -867,13 +877,6 @@ inoremap <c-f> <c-x><c-f>
" }}}
" }}}
-" Training mappings ------------------------------------------------------- {{{
-
-" Use L, dammit.
-nnoremap Ajk <nop>
-nnoremap A<esc> <nop>
-
-" }}}
" CTags ------------------------------------------------------------------- {{{
" For some reason ctags refuses to ignore Python variables, so I'll just hack
@@ -926,7 +929,7 @@ let ctrlp_filter_greps = "".
\ "jar|class|swp|swo|log|so|o|pyc|jpe?g|png|gif|mo|po" .
\ ")$' | " .
\ "egrep -v '^(\\./)?(" .
- \ "lib/|classes/|libs/|deploy/vendor/|.git/|.hg/|.svn/|.*migrations/" .
+ \ "deploy/|lib/|classes/|libs/|deploy/vendor/|.git/|.hg/|.svn/|.*migrations/" .
\ ")'"
let my_ctrlp_user_command = "" .
View
44 vim/snippets/python.snippets
@@ -8,56 +8,14 @@ snippet while
snippet for
for ${1:x} in ${2:xs}:
${3:pass}
-snippet fore
- for ${1:n}, ${2:item} in enumerate(${3:items}):
- ${4:pass}
-snippet class
- class ${1:ClassName}(${2:object}):
- def __init__(self${3:, args}):
- ${4:super($1, self).__init__()}
- ${5}
snippet def
def ${1:function}(${2}):
${3:pass}
snippet defs
def ${1:method}(self${2}):
${3:pass}
-snippet prop
- @property
- def ${1:method}(self${2}):
- ${3:pass}
snippet lam
lambda ${1:args}: ${2:action}
-snippet .
- self.
-snippet try Try/Except
- try:
- ${1:pass}
- except ${2:Exception}, ${3:e}:
- ${4:raise $3}
-snippet try Try/Except/Else
- try:
- ${1:pass}
- except ${2:Exception}, ${3:e}:
- ${4:raise $3}
- else:
- ${5:pass}
-snippet try Try/Except/Finally
- try:
- ${1:pass}
- except ${2:Exception}, ${3:e}:
- ${4:raise $3}
- finally:
- ${5:pass}
-snippet try Try/Except/Else/Finally
- try:
- ${1:pass}
- except ${2:Exception}, ${3:e}:
- ${4:raise $3}
- else:
- ${5:pass}
- finally:
- ${6:pass}
snippet ifmain
if __name__ == '__main__':
${1:main()}
@@ -69,3 +27,5 @@ snippet af
assert False, repr(${1})$2
snippet pdbt
import pdb; pdb.set_trace()
+snippet pp
+ from pprint import pprint; pprint($1)$2
Please sign in to comment.
Something went wrong with that request. Please try again.