mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 07:37:36 +00:00
WIP: Add iVim support
This commit is contained in:
parent
ef18e73af1
commit
887eabe7e1
14
vim/init.vim
14
vim/init.vim
@ -39,7 +39,7 @@ endfunction
|
||||
|
||||
" IsMac determines if this instance is running on macOS
|
||||
function! IsMac()
|
||||
return !s:is_windows && !s:is_cygwin
|
||||
return !s:is_windows && !s:is_cygwin && !has('iVim')
|
||||
\ && (has('mac') || has('macunix') || has('gui_macvim') ||
|
||||
\ (!executable('xdg-open') &&
|
||||
\ system('uname') =~? '^darwin'))
|
||||
@ -54,8 +54,14 @@ endfunction
|
||||
|
||||
" Auto install vim-plug
|
||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
if has('iVim')
|
||||
terminal curl -kOL --remote-name --time-cond $SSL_CERT_FILE -o $SSL_CERT_FILE https://curl.haxx.se/ca/cacert.pem
|
||||
terminal curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
else
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
endif
|
||||
augroup pluginstall
|
||||
autocmd VimEnter * PlugInstall
|
||||
augroup end
|
||||
@ -64,6 +70,8 @@ endif
|
||||
call s:smart_source_rc('init')
|
||||
call s:smart_source_rc('input')
|
||||
call plug#begin()
|
||||
call s:smart_source_rc('plugins')
|
||||
if !has('iVim')
|
||||
call s:smart_source_rc('plugins')
|
||||
endif
|
||||
call plug#end()
|
||||
call s:smart_source_rc('ui')
|
||||
|
10
vim/ivim_hardware_keyboard_config.json
Normal file
10
vim/ivim_hardware_keyboard_config.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"en-US" : {
|
||||
"mappings" : {
|
||||
|
||||
},
|
||||
"symbols" : "`-=~!@#$%^&*()_+[]\\{}|;':\",.\/<>?",
|
||||
"letters" : "abcdefghijklmnopqrstuvwxyz",
|
||||
"version" : "0.0.1"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user