Skip to content

improved commented Update maycomplete.vim #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion autoload/omni/cpp/maycomplete.vim
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ function! omni#cpp#maycomplete#Complete()
endif
return szOmniMapping
endfunc
"function ends

" May complete function for dot
function! omni#cpp#maycomplete#Dot()
@@ -41,6 +42,7 @@ function! omni#cpp#maycomplete#Dot()
return '.' . omni#cpp#maycomplete#Complete()
endif
endif
"function ends
return '.'
endfunc
" May complete function for arrow
@@ -60,8 +62,9 @@ function! omni#cpp#maycomplete#Arrow()
endif
return '>'
endfunc
"function ends

" May complete function for double points
" May complete function for double point
function! omni#cpp#maycomplete#Scope()
if s:CanUseOmnicompletion() && g:OmniCpp_MayCompleteScope
let index = col('.') - 2
@@ -78,5 +81,6 @@ function! omni#cpp#maycomplete#Scope()
endif
endif
endif
"function ends
return ':'
endfunc