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
" 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 |
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
" 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. |
NewerOlder