Last active
September 20, 2021 07:55
-
-
Save yuki-yano/31370b93bb1532fe724e88e91fa92960 to your computer and use it in GitHub Desktop.
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
| let s:DEIN_BASE_PATH = $HOME . '/.vim/bundle/' | |
| let s:DEIN_PATH = expand(s:DEIN_BASE_PATH . 'repos/github.com/Shougo/dein.vim') | |
| if !isdirectory(s:DEIN_PATH) | |
| if executable('git') | |
| execute '!git clone --depth=1 https://github.com/Shougo/dein.vim' s:DEIN_PATH | |
| endif | |
| endif | |
| let &runtimepath .= ',' . s:DEIN_PATH | |
| if dein#load_state(s:DEIN_BASE_PATH) | |
| call dein#begin(s:DEIN_BASE_PATH) | |
| call dein#add('cohama/lexima.vim', {'lazy': 1, 'on_i': 1, 'hook_post_source': 'call SetupLexima()'}) | |
| call dein#end() | |
| call dein#save_state() | |
| endif | |
| if dein#check_install() | |
| call dein#install() | |
| endif | |
| function! SetupLexima() abort | |
| let s:rules = [] | |
| let s:rules += [ | |
| \ { 'char': '<BS>', 'at': '(\%#)', 'input': '<BS><Del>', }, | |
| \ ] | |
| for s:rule in s:rules | |
| call lexima#add_rule(s:rule) | |
| endfor | |
| endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment