{% img left /images/myImage.png Alt text %}
{% img ${1:left} ${2:path} ${3:title} %}
autocmd! bufwritepost .vimrc source ~/.vimrc | |
set showtabline=2 | |
set guitablabel=%t | |
set ignorecase smartcase | |
set smarttab | |
set wrap | |
set whichwrap+=l,h | |
set number | |
set history=50 | |
set autoread |
<snippet> | |
<content><![CDATA[ | |
Hello, song ${1:this} is a ${2:snippet}. | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>hello</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.python</scope> | |
</snippet> |
{% img left /images/myImage.png Alt text %}
{% img ${1:left} ${2:path} ${3:title} %}
import os | |
import pymongo | |
MONGO_URL = os.environ.get('MONGOHQ_URL') | |
if MONGO_URL: | |
# Get a connection | |
conn = pymongo.Connection(MONGO_URL) | |
# Get the database |
<snippet> | |
<content><![CDATA[ | |
Hello, ${1:this} is a ${2:snippet}. | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>hello</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.md</scope> | |
<scope>song</scope> | |
</snippet> |
this is a test |