我在 termux 中使用 vim-python。Onmicomplete 什么也没完成。我的意思是 CX,CO 什么都不做。没有一个关键字,模块,什么都没有。它总是找不到模式。
$ pkg list-installed | grep vim
WARNING: apt does not have a stable CLI interface. Use with
caution in scripts.
vim-python/stable,now 8.1.2000 arm [installed]
vim-runtime/stable,now 8.1.2000 all [installed]
我当前的 .vimrc 是
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
".vimrc setup file
"turn on filetype recognition and plugin
"turn on filetype recognition and plugin
filetype plugin on
"enable omnicomplete
set omnifunc=syntaxcomplete#Complete
nmap <Space> i_<Esc>r
从 vim 我看到:
:set omnifunct
omnifunc=python3complete#Complete
没有什么是开箱即用的。语法高亮的安装就像在正常的 Debian 安装上一样。
我已经安装了 python 模式。然而它没有用。我尝试了 pydiction 并且它有效,但是一个简单的
ab[tab]
在这里,[tab] 只是意味着点击 tab 键,这就是 pydiction 的工作原理。它给了我 abs( 埋在十几个或更多无用替代品的列表中,其他功能类似,但找不到
from bs4 import Be[tab]
完全没有。
不确定它 vim 在 termux 或什么中过于缩小。我还没有找到另一个尚未解决的功能。
这是编译的选项...
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 7 2019 23:58:37)
Included patches: 1-1999
Compiled by builder@cirrus-ci-task-4815910415630336
Huge version without GUI. Features included (+) or not (-):
+acl -farsi -mouse_sysmouse -tag_any_white
+arabic +file_in_path +mouse_urxvt -tcl
+autocmd +find_in_path +mouse_xterm +termguicolors
+autochdir +float +multi_byte +terminal
-autoservername +folding +multi_lang +terminfo
-balloon_eval -footer -mzscheme +termresponse
+balloon_eval_term +fork() +netbeans_intg +textobjects
-browse -gettext +num64 +textprop
++builtin_terms -hangul_input +packages +timers
+byte_offset +iconv +path_extra +title
+channel +insert_expand -perl -toolbar
+cindent +job +persistent_undo +user_commands
-clientserver +jumplist +postscript +vartabs
-clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +virtualedit
+cmdline_hist +langmap -python +visual
+cmdline_info +libcall +python3 +visualextra
+comments +linebreak +quickfix +viminfo
+conceal +lispindent +reltime +vreplace
+cryptv +listcmds +rightleft +wildignore
+cscope +localmap -ruby +wildmenu
+cursorbind -lua +scrollbind +windows
+cursorshape +menu +signs +writebackup
+dialog_con +mksession +smartindent -X11
+diff +modify_fname -sound -xfontset
+digraphs +mouse +spell -xim
-dnd -mouseshape +startuptime -xpm
-ebcdic +mouse_dec +statusline -xsmp
+emacs_tags -mouse_gpm -sun_workshop -xterm_clipboard
+eval -mouse_jsbterm +syntax -xterm_save
+ex_extra +mouse_netterm +tag_binary
+extra_search +mouse_sgr -tag_old_static
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/data/data/com.termux/files/usr/share/vim"
Compilation: arm-linux-androideabi-clang -c -I. -Iproto -DHAVE_CONFIG_H -I/data/data/com.termux/files/usr/include -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -Oz -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: arm-linux-androideabi-clang -L/data/data/com.termux/files/usr/lib -march=armv7-a -Wl,-rpath=/data/data/com.termux/files/usr/lib,--enable-new-dtags -Wl,-z,relro,-z,now -Wl,--as-needed -o vim -lm -lncursesw -liconv -L/data/data/com.termux/files/usr/lib/python3.7/config-3.7m/ -lpython3.7m -lcrypt -ldl -lm
提前感谢您的任何帮助