Changes between Version 17 and Version 18 of UsingVimWithDjango


Ignore:
Timestamp:
10/09/06 06:13:01 (8 years ago)
Author:
Lllama
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingVimWithDjango

    v17 v18  
    2929[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.
    3030
    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:
     31One 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):
    3232{{{
    3333if getline(1) =~ 'from django.db import models'
Back to Top