cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
1.01k stars 46 forks source link

Stop calling an autoload function from plugin/lexima.vim #56

Closed k-takata closed 8 years ago

k-takata commented 8 years ago

Calling an autoload function from plugin/*.vim spoils the usage of autoload functions. Stop calling it.

(Some global variables or initialization code might be needed to move from autoload/ to plugin/.)

cohama commented 8 years ago

There is a problem in this commit. lexima'vim does not work with the following vimrc

" load lexima and that's all.
set rtp+=path/to/lexima.vim
" end of vimrc

Calling lexima#init() is needed since someone may want to use lexima.vim without any settings.

I notice the leixma's initialization is dirty but I don't have any idea.

k-takata commented 8 years ago

Updated. How about calling lexima#init() when entered insert mode first time?

cohama commented 8 years ago

Good idea! Thanks