在Android上安装BusyBox
0. 先要把手机给Root了,具体教程这里就不提供了,网上有很多。
1. 下载BusyBox的binary,打开这个地址 http://www.busybox.net/downloads/binaries 例如下载了: /downloads/binaries/1.21.1/中的busybox-armv7l
2.把下载好的busybox-armv7l用adb push busybox-armv7l /sdcard/ 下, 然后重命名 mv busybox-armv7l busybox
3. 在root模式下执行 mount -o remount,rw /system , 然后 mv /sdcard/busybox /system/xbin/
4. 更换权限chmod 755 /system/xbin/busybox ,然后 busybox –install
——————————————————————————–
一、vim基础配置
在/etc/vim/vimrc中添加
set fileencodings=utf-8,gbk
set ambiwidth=double
set smartindent
set smarttab
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set backspace=2
set textwidth=79
set nu
二.设置代码补全功能
1.利用omni-completion补全函数:在vimrc中插入:
filetype plugin on
autocmd FileType python set omnifunc=pythoncomplete#Complete
下载pydiction —-
wget https://vim.sourceforge.io/scripts/download_script.php?src_id=21842
unzip pydiction-1.2.zip
“ ~/.vim/after/ftplugin和~/.vim/tools/pydiction/目录默认不存在,需要自行创建
#cp pydiction-1.2/python_pydiction.vim ~/.vim/after/ftplugin
#cp pydiction-1.2/complete-dict ~/.vim/tools/pydiction/complete-dict
然后修改vimrc文件,加入一行
filetype plugin on
autocmd FileType python set omnifunc=pythoncomplete#Complete
let g:pydiction_location=’~/.vim/tools/pydiction/complete-dict’
这时,按Tab键就可以补全代码
三.源代码查看功能
1.安装ctags apt-get install ctags
安装完成后,把光标移动到某个元素上,CTRL+],就会跳转到对应的定义啦。CTRL+o可以回退到原来的地方。
2.安装taglis
#apt-get install vim-scripts
#apt-get install vim-addon-manager
# vim-addons install taglist
let Tlist_Auto_Highlight_Tag=1
let Tlist_Auto_Open=1
let Tlist_Auto_Update=1
let Tlist_Display_Tag_Scope=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Enable_Dold_Column=1
let Tlist_File_Fold_Auto_Close=1
let Tlist_Show_One_File=1
let Tlist_Use_Right_Window=1
let Tlist_Use_SingleClick=1
nnoremap
安装完成后,会在右边出现文件目录,使用Ctrl+w,再按w可以在code窗口和taglist窗口间切换。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/hz/130906.html