Created
October 28, 2009 13:45
-
-
Save hokaccha/220491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" textobj-template - Text objects for WAF template engine. | |
" Version: 0.0.1 | |
" Author: Kazuhito Hokamura | |
" License: MIT license (see <http://www.opensource.org/licenses/mit-license>) | |
if exists('g:loaded_textobj_template') | |
finish | |
endif | |
call textobj#user#plugin('template', { | |
\ 'tt': { | |
\ 'select-a': 'aTt', | |
\ 'select-i': 'iTt', | |
\ '*pattern*': ['\[%-\? ', ' -\?%\]'], | |
\ }, | |
\ 'mt': { | |
\ 'select-a': 'aTm', | |
\ 'select-i': 'iTm', | |
\ '*pattern*': ['<?= ', ' ?>'], | |
\ }, | |
\ 'rhtml': { | |
\ 'select-a': 'aTr', | |
\ 'select-i': 'iTr', | |
\ '*pattern*': ['<%= ', ' %>'], | |
\ }, | |
\ 'django': { | |
\ 'select-a': 'aTd', | |
\ 'select-i': 'iTd', | |
\ '*pattern*': ['{\(%\|{\) ', ' \(%\|}\)}'], | |
\ }, | |
\ }) | |
let loaded_textobj_template= 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment