Skip to content

Commit

Permalink
Moar.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed May 20, 2011
1 parent 64d902f commit d4a86a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .hgrc
Expand Up @@ -200,3 +200,6 @@ killd = !ps auxww | grep "hgd/hgd.py" | grep -v grep | sed -e 's/ */ /g' | cut

# Show in MacVim
vshow = !$HG show $@ | mvim -c ':AnsiEsc' -c 'setlocal buftype=nofile' -

# Update subrepos
subup = !grep = "`$HG root`/.hgsub" | cut -d' ' -f1 | xargs -n 1 -I SUB hg pull --update --cwd "`$HG root`/SUB"
4 changes: 4 additions & 0 deletions vim/snippets/django.snippets
Expand Up @@ -63,6 +63,10 @@ snippet m2m
${1:FIELDNAME} = models.ManyToManyField(${2:OtherModel})
snippet bl
blank=True
snippet dc
db_column='${1:colname}'
snippet dt
db_table='${1:tablename}'
snippet o2o
${1:FIELDNAME} = models.OneToOneField(${2:OtherModel}${3:, parent_link=True}${4:, related_name=''}${5:, limit_choices_to=}${6:, to_field=''})

Expand Down

0 comments on commit d4a86a8

Please sign in to comment.