Installing YouCompleteMe and vim-go in Termux
- Install prereqs
pkg update && pkg upgrade && pkg install procps proot vim-python openssh git golang python python-dev libclang cmake patch curl libcrypt-dev
- Restart termux
- Setup proot
cd ~ && curl -fsSL https://raw.githubusercontent.com/theimpostor/termux-vim-ycm/master/bashrc.patch | patch
- Restart termux
- Install vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- Setup .vimrc w/vundle, ycm, vim-go
curl -fsSL https://raw.githubusercontent.com/theimpostor/termux-vim-ycm/master/vundle.vimrc >> ~/.vimrc
- Install plugins
vim +PluginInstall +qall
- Patch YCM source to build on android
cd ~/.vim/bundle/YouCompleteMe/third_party/ycmd && curl https://raw.githubusercontent.com/theimpostor/termux-vim-ycm/master/ycmd.patch | patch -p 1
- Build ycm binary
cd ~/.vim/bundle/YouCompleteMe && ./install.py --go-completer --clang-completer --system-libclang
- Install binaries for vim-go
vim +GoInstallBinaries