What about g:clojure_fuzzy_color_patterns for v-c-s?

8 views
Skip to first unread message

Oskar Kvist

unread,
Feb 11, 2014, 2:12:52 PM2/11/14
to vimcl...@googlegroups.com
Hi!

For example, I want everything that start with `def` to be a clojureDefine. I have my own ugly implementation of this, but someone who knows vimscript properly can no doubt make a nicer implementation.

My ugly creation:

function! CljHL_beginning(type, name)
  execute g:sm . a:type . g:nsq . a:name . g:sym_rest . g:endq
endfunction

call CljHL_beginning(define, 'def')

where nsq, sm, etc are just regexes.

Reply all
Reply to author
Forward
0 new messages