diff --git a/vim/init.vim b/vim/init.vim index a4a829c..029dd30 100644 --- a/vim/init.vim +++ b/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') diff --git a/vim/ivim_hardware_keyboard_config.json b/vim/ivim_hardware_keyboard_config.json new file mode 100644 index 0000000..7aaa765 --- /dev/null +++ b/vim/ivim_hardware_keyboard_config.json @@ -0,0 +1,10 @@ +{ + "en-US" : { + "mappings" : { + + }, + "symbols" : "`-=~!@#$%^&*()_+[]\\{}|;':\",.\/<>?", + "letters" : "abcdefghijklmnopqrstuvwxyz", + "version" : "0.0.1" + } +} \ No newline at end of file