Extended completion
This commit is contained in:
parent
d2aab86956
commit
65fcfb722a
1 changed files with 7 additions and 5 deletions
12
c4ctrl.vim
12
c4ctrl.vim
|
@ -159,7 +159,7 @@ function s:C4ctrlCompletion(ArgLead, CmdLine, CursorPos)
|
||||||
let s:relCmdLine = split(a:CmdLine)
|
let s:relCmdLine = split(a:CmdLine)
|
||||||
let s:relCmdLine = s:relCmdLine[index(s:relCmdLine, s:Name):]
|
let s:relCmdLine = s:relCmdLine[index(s:relCmdLine, s:Name):]
|
||||||
|
|
||||||
try " Just for the clean up in the finally statement
|
try " Just for cleaning up in the finally statement
|
||||||
if stridx("open", get(s:relCmdLine, 1)) == 0
|
if stridx("open", get(s:relCmdLine, 1)) == 0
|
||||||
if a:ArgLead != ""
|
if a:ArgLead != ""
|
||||||
return "open"
|
return "open"
|
||||||
|
@ -180,10 +180,12 @@ function s:C4ctrlCompletion(ArgLead, CmdLine, CursorPos)
|
||||||
|
|
||||||
elseif stridx("set", get(s:relCmdLine, 1)) == 0
|
elseif stridx("set", get(s:relCmdLine, 1)) == 0
|
||||||
if a:ArgLead != ""
|
if a:ArgLead != ""
|
||||||
return "set"
|
if stridx("-magic", get(s:relCmdLine, -2)) == 0
|
||||||
endif
|
return "none\nemp\nfade\nflash\npulse\nwave"
|
||||||
if stridx("-magic", get(s:relCmdLine, -1)) == 0
|
endif
|
||||||
return "none\nemp\nfade\nflash\nwave"
|
return "set\n-magic"
|
||||||
|
elseif stridx("-magic", get(s:relCmdLine, -1)) == 0
|
||||||
|
return "none\nemp\nfade\nflash\npulse\nwave"
|
||||||
endif
|
endif
|
||||||
return "w\np\nf\n-magic"
|
return "w\np\nf\n-magic"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue