Skip to content

Instantly share code, notes, and snippets.

View thinca's full-sized avatar
⌨️
Happy Vimming!

thinca thinca

⌨️
Happy Vimming!
View GitHub Profile
" vimrcbox.vim
" Author: Sora harakami <sora134@gmail.com>
" Modified by: thinca <thinca+vim@gmail.com> thanks!
" Modified by: Shougo <Shougo.Matsu@gmail.com> thanks!
" Require: curl
" Licence: MIT Licence
if exists('g:loaded_vimrcbox')
finish
endif
" append to syntax/hatena.vim
let b:hatena_syntax_super_pre_loaded = {} " Reset when load.
function! s:update_super_pre()
let mx = '^>|\zs.*\ze|$'
for curline in getline(1, '$')
let ft = matchstr(curline, mx)
if ft != '' && !has_key(b:hatena_syntax_super_pre_loaded, ft)
\ && globpath(&rtp, 'syntax/' . ft . '.vim') != ''
unlet! b:current_syntax
let save_isk= &l:isk " For scheme.