Skip to content

QQ1598058687/vim_touch_for_termux

Repository files navigation

vim_touch_for_termux

install termux apk :https://f-droid.org/packages/com.termux/
下载termux apk
脚本来源:https://github.com/chxuan/vimplus

更改为termux专用


Method 1:

@@内置环境:  @@  
@@   python3.10.2   vim-8.2.3543  new ycm clang-13.0.1  @@  

According to the recovery method of the wiki, directly download the package to recover  

https://wiki.termux.com/wiki/Backing_up_Termux

download 1: c/cpp environment Backing up


Method 2:

!During the installation...  
! If the updated package from the official termux source is incomplete,Linking or dependency problems will all be generated during the ycm phase of compiling,Still hope to know

+continue 

!需要移除原先的vim(Need to remove the previously installed vim)

一步到位

git clone https://github.com/QQ1598058687/vim_touch_for_termux.git ~/.vimplus
cd ~/.vimplus
./install.sh

F1:help
F2:exit(vim)
F3:NERDTree
F4:save current file
F5: compile & Run (c/cpp)
F6: debug C/CPP

过程中请保持网络通畅,耐心等待安装下载相关组件与安装.

调试状态替换监视边框宽度(debug cpp ,watching Windows size)

vim ~/.vim/plugged/NeoDebug/plugin/NeoDebug.vim

esc:%s/ = 50/ = 15/g

default c/cpp environment
If python or clang is updated
Recompile ycm

cd ~/.vim/plugged/YouCompleteMe
python3 ./install.py --clang-completer --system-libclang  

Change Python3 environment

cd ~/.vim/plugged/YouCompleteMe/ && python3 ./install.py  

vim ~/.vimplus/.vimrc  

add Content

autocmd FileType python nmap <F5> <Esc>:AsyncRun -mode=term python3 "%"<CR>  
autocmd FileType python vmap <F5> <Esc>:AsyncRun -mode=term python3 "% "<CR>  
autocmd FileType python imap <F5> <Esc>:AsyncRun -mode=term python3 "%"<CR>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published