summaryrefslogtreecommitdiffstats
path: root/after/ftplugin
diff options
context:
space:
mode:
authorMichal Minář <i@minami.cz>2012-02-04 17:38:32 +0100
committerMichal Minář <i@minami.cz>2012-02-04 17:38:32 +0100
commit219df2e95a7181cc37cad4008cdcc80d9ca55fbf (patch)
tree2080c0e63aa15f43680c66227289cd21ff01a52e /after/ftplugin
parentb9419cc51aa5a46e601e342411c14b4f08597c90 (diff)
downloadvim-219df2e95a7181cc37cad4008cdcc80d9ca55fbf.zip
vim-219df2e95a7181cc37cad4008cdcc80d9ca55fbf.tar.gz
vim-219df2e95a7181cc37cad4008cdcc80d9ca55fbf.tar.xz
installed some plugins, some tweaks
added django snippets added pathogen plugin for dynamic change of runtimepath added surround plugin for deleting, changing and adding surroundings added tasklist plugin changed statusline * included file format * added colors * added file lenght
Diffstat (limited to 'after/ftplugin')
-rw-r--r--after/ftplugin/python_mysnippets.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/after/ftplugin/python_mysnippets.vim b/after/ftplugin/python_mysnippets.vim
new file mode 100644
index 0000000..709b1de
--- /dev/null
+++ b/after/ftplugin/python_mysnippets.vim
@@ -0,0 +1,16 @@
+if !exists('loaded_snippet') || &cp
+ finish
+endif
+
+" my snippets
+exec "Snippet pdb import pdb; pdb.set_trace()"
+
+" django snippets
+Snippet addmodel class <{}>(models.Model):<CR><><CR><CR>def __unicode__(self):<CR>return "%s" % (<{}>,)
+Snippet mcf models.CharField(max_length=<{}>)<CR><{}>
+Snippet mff models.FileField(upload_to=<{}>)<CR><{}>
+Snippet mfpf models.FilePathField(path=<{}>, match="<{}>", recursive=<False>)<CR><{}>
+Snippet mfloat models.FloatField(max_digits=<{}>, decimal_places=<{}>)<CR><{}>
+Snippet mfk models.ForeignKey(<{}>)<CR><{}>
+Snippet m2m models.ManyToManyField(<{}>)<CR><{}>
+Snippet o2o models.OneToOneField(<{}>)<CR><{}>