Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MadLittleMods/6831544 to your computer and use it in GitHub Desktop.
Save MadLittleMods/6831544 to your computer and use it in GitHub Desktop.
Fix the conflicting "var" tab completion with Djaneiro

This is a non-working tutorial. It does not completely solve the issue for some reason

Djaneiro is a sublime package that gives a bunch of snippets (tab completions) for Django including templating.

The most useful snippets I use are for templating:

  • var: {{ }}
  • tag: {% %}

The default HTML package in Sublime has var as a conflicting tab completion so instead of completing with {{ }} from Djaneiro, it gives <var></var>.

To fix this: In C:\Users\username_000\AppData\Roaming\Sublime Text 2\Packages\HTML\html_completions.py remove each line,

  • ("var\tTag", "var>$1</var>"),
  • ("VAR\tTag", "VAR>$1</VAR>"),

In C:\Users\username_000\AppData\Roaming\Sublime Text 2\Packages\HTML\HTML.sublime-completions remove each line,

  • { "trigger": "var", "contents": "<var>$1</var>" },
  • { "trigger": "VAR", "contents": "<VAR>$1</VAR>" },

If you are going to backup those files make sure you change the extension and not just rename the file as sublime will absorb those files and mitigate what you are trying to achieve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment