求不用按组合快捷键就能自动提示的插件?
vim吧
全部回复
仅看楼主
level 9
沧浪淼客 楼主
默认的所谓智能提示都是要俺快捷键..比如c+x c+u..等等...这能叫快捷键吗??如题,这款插件肯定存在,就是现在搜不到了...求助啊..大神们..[大哭]
2013年11月13日 11点11分 1
level 3
时时刻刻自动提示会把电脑搞得太慢,如果你歉按两个键麻烦就绑定为按一个键。
nmap <M-a> ..
如果你坚持要光标移动就提示,干脆写成一个函数,总是自动获取当前位置字符并提示,或者说是1秒后就提示
function! MySuggestion()
sleep 1
exe "norm \<C-x>\<C-u>"
endfunction
2013年11月13日 13点11分 2
level 3
Example*CursorHold-example* >
:au! CursorHold *.[ch] nested exe "silent! ptag " . expand("<cword>")
This will cause a ":ptag" to be executed for the keyword under the cursor,
when the cursor hasn't moved for the time set with 'updatetime'. The "nested"
makes other autocommands be executed, so that syntax highlighting works in the
preview window. The "silent!" avoids an error message when the tag could not
be found. Also see |CursorHold|. To disable this again: >
:au! CursorHold
A nice addition is to highlight the found tag, avoid the ":ptag" when there
is no word under the cursor, and a few other things: >
:au! CursorHold *.[ch] nested call PreviewWord()
:func PreviewWord()
: if &previewwindow" don't do this in the preview window
: return
: endif
: let w = expand("<cword>")" get the word under cursor
: if w =~ '\a'" if the word contains a letter
:
: " Delete any existing highlight before showing another tag
: silent! wincmd P" jump to preview window
: if &previewwindow" if we really get there...
: match none" delete existing highlight
: wincmd p" back to old window
: endif
:
: " Try displaying a matching tag for the word under the cursor
: try
: exe "ptag " . w
: catch
: return
: endtry
:
: silent! wincmd P" jump to preview window
: if &previewwindow" if we really get there...
: if has("folding")
: silent! .foldopen" don't want a closed fold
: endif
: call search("$", "b")" to end of previous line
: let w = substitute(w, '\\', '\\\\', "")
: call search('\<\V' . w . '\>')" position cursor on match
: " Add a match highlight to the word at this position
: hi previewWord term=bold ctermbg=green guibg=green
: exe 'match previewWord "\%' . line(".") . 'l\%' . col(".") . 'c\k*"'
: wincmd p" back to old window
: endif
: endif
:endfun
2013年11月13日 13点11分 3
不好意思啊..想删除提醒没想到你的帖子也被删除了...[惊哭]
2013年11月14日 01点11分
level 12
你以为有多少人真的按 CTRL-X CTRL-O 的,都是自己先 map 到别的键上再用的。:help :map
2013年11月14日 11点11分 5
map再多还是要按键的啊,现在要的是能够完全智能自动提示的..[乖]
2013年11月15日 02点11分
level 8
youcompleteme vim7.4
2013年11月14日 15点11分 6
正解嘎,强烈推荐!!!!!!!!!!!
2013年11月15日 02点11分
白高兴了,官方对windonws不正式支持,安装也很麻烦,小白看不懂啊.
2013年11月15日 02点11分
貌似不错,但是编译太麻烦,python,clang,cmake,vs,还有mingw?我还没有安装成功。
2013年11月18日 00点11分
大神,我下面发的图片里的插件貌似可以解决这个问题..可配置里加上nmap <unique> <...> <Plug>AutocompStart 这句话没反应啊..求助.[蛋糕]
2013年11月19日 14点11分
level 9
沧浪淼客 楼主
2013年11月16日 06点11分 7
应该是这款插件吧..[钱]
2013年11月19日 10点11分
level 5
autocomplpop.vim
2013年12月13日 16点12分 9
1