Created
December 2, 2015 19:03
-
-
Save koturn/3c8a69ee26f98478ced1 to your computer and use it in GitHub Desktop.
vim-nijiをNeoBundleLazyしたときに,初回から機能させる設定
This file contains hidden or 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
if has('vim_starting') | |
set rtp+=~/.vim/bundle/neobundle.vim | |
endif | |
call neobundle#begin() | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundleLazy 'losingkeys/vim-niji', { | |
\ 'autoload': { | |
\ 'filetypes': ['lisp', 'scheme'] | |
\ } | |
\} | |
call neobundle#end() | |
filetype plugin indent on | |
if neobundle#tap('vim-niji') | |
function! neobundle#tapped.hooks.on_post_source(bundle) abort | |
let matching_filetypes = get(g:, 'niji_matching_filetypes', ['lisp', 'scheme', 'clojure']) | |
if count(matching_filetypes, &ft) > 0 || exists('g:niji_match_all_filetypes') | |
call niji#highlight() | |
endif | |
" doautocmd を用いて,autocmd を発生させるのもひとつの手 | |
" doautocmd BufNewFile,BufReadPost,FilterReadPost,FileReadPost * | |
endfunction | |
call neobundle#untap() | |
endif | |
if !has('vim_starting') | |
call neobundle#call_hook('on_source') | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment