Changes between Version 17 and Version 18 of UsingVimWithDjango
- Timestamp:
- Oct 9, 2006, 6:13:01 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsingVimWithDjango
v17 v18 29 29 [http://www.vim.org/scripts/script.php?script_id=1318 SnippetsEmu] allows one to define abbreviations which can be expanded into larger blocks of text. The abbreviations can also contain place markers which can be 'jumped to' in a similar manner to the macros defined in TextMate on OS X. 30 30 31 One can add specific abbreviations for models or templates based on file contents. Adding the following line to your ~/.vim/ ftplugin/python.vim file (create it if you don't have it) will allow you to define abbreviations just for models:31 One can add specific abbreviations for models or templates based on file contents. Adding the following line to your ~/.vim/after/ftplugin/python.vim file (create it if you don't have it) will allow you to define abbreviations just for models (use the file \Program Files\vim\vimfiles\after\ftplugin\python.vim under Windows): 32 32 {{{ 33 33 if getline(1) =~ 'from django.db import models'