Lines Matching refs:choice

1312    let choice= confirm("Remove personal and system copies of netrw?","&Yes\n&No")
1314 let choice= confirm("Remove personal copy of netrw?","&Yes\n&No")
1316 " call Decho("choice=".choice,'~'.expand("<slnum>"))
1320 if choice == 1
2070 let choice = b:netrw_lastfile
2074 exe "let choice= a:" . ichoice
2075 " call Decho("no lastfile: choice<" . choice . ">",'~'.expand("<slnum>"))
2077 if match(choice,"?") == 0
2096 elseif match(choice,'^"') != -1
2097 " Reconstruct Choice if choice starts with '"'
2098 " call Decho("reconstructing choice",'~'.expand("<slnum>"))
2099 if match(choice,'"$') != -1
2101 let choice= strpart(choice,1,strlen(choice)-2)
2104 let choice = strpart(choice,1,strlen(choice)-1)
2107 while match(choice,'"$') == -1
2108 let wholechoice = wholechoice . " " . choice
2117 let choice= a:{ichoice}
2119 …let choice= strpart(wholechoice,1,strlen(wholechoice)-1) . " " . strpart(choice,0,strlen(choice)-1)
2124 " call Decho("choice<" . choice . ">",'~'.expand("<slnum>"))
2128 call s:NetrwMethod(choice)
2136 " call Decho("checking if NetrwBrowse() should handle choice<".choice."> with netrw_list_cmd<".g:…
2137 if choice =~ "^.*[\/]$" && b:netrw_method != 5 && choice !~ '^https\=://'
2138 " call Decho("yes, choice matches '^.*[\/]$'",'~'.expand("<slnum>"))
2139 NetrwKeepj call s:NetrwBrowse(0,choice)
2175 let b:netrw_lastfile = choice
2213 let b:netrw_lastfile = choice
2272 let b:netrw_lastfile = choice
2292 let b:netrw_lastfile = choice
2328 let b:netrw_lastfile = choice
2366 let b:netrw_lastfile = choice
2374 let b:netrw_lastfile = choice
2402 let b:netrw_lastfile = choice
2412 let b:netrw_lastfile = choice
2420 let b:netrw_lastfile = choice
2425 call netrw#ErrorMsg(s:WARNING,"unable to comply with your request<" . choice . ">",8)
2493 " NetWrite: while choice loop: {{{3
2500 let choice = b:netrw_lastfile
2503 exe "let choice= a:" . ichoice
2505 " Reconstruct Choice when choice starts with '"'
2506 if match(choice,"?") == 0
2521 elseif match(choice,"^\"") != -1
2522 if match(choice,"\"$") != -1
2524 let choice=strpart(choice,1,strlen(choice)-2)
2527 let choice = strpart(choice,1,strlen(choice)-1)
2530 while match(choice,"\"$") == -1
2531 let wholechoice= wholechoice . " " . choice
2533 if choice > a:0
2540 let choice= a:{ichoice}
2542 …let choice= strpart(wholechoice,1,strlen(wholechoice)-1) . " " . strpart(choice,0,strlen(choice)-1)
2547 " call Decho("choice<" . choice . "> ichoice=".ichoice,'~'.expand("<slnum>"))
2550 NetrwKeepj call s:NetrwMethod(choice)
2582 let b:netrw_lastfile = choice
2626 let b:netrw_lastfile = choice
2670 " save choice/id/password for future use
2671 let b:netrw_lastfile = choice
2703 let b:netrw_lastfile = choice
2752 let b:netrw_lastfile = choice
2759 let b:netrw_lastfile = choice
2787 let b:netrw_lastfile = choice
2792 call netrw#ErrorMsg(s:WARNING,"unable to comply with your request<" . choice . ">",17)
3045 " choice = url [protocol:]//[userid@]hostname[:port]/[path-to-file]
3060 " g:netrw_choice = copy of input url (choice)
3061 fun! s:NetrwMethod(choice) argument
3062 " call Dfunc("s:NetrwMethod(a:choice<".a:choice.">)")
3064 " sanity check: choice should have at least three slashes in it
3065 if strlen(substitute(a:choice,'[^/]','','g')) < 3
3068 " call Dret("s:NetrwMethod : incorrect url format<".a:choice.">")
3093 let g:netrw_choice = a:choice
3124 if match(a:choice,rcpurm) == 0
3127 let userid = substitute(a:choice,rcpurm,'\1',"")
3128 let g:netrw_machine = substitute(a:choice,rcpurm,'\2',"")
3129 let b:netrw_fname = substitute(a:choice,rcpurm,'\3',"")
3135 elseif match(a:choice,scpurm) == 0
3138 let g:netrw_machine = substitute(a:choice,scpurm,'\1',"")
3139 let g:netrw_port = substitute(a:choice,scpurm,'\2',"")
3140 let b:netrw_fname = substitute(a:choice,scpurm,'\3',"")
3143 elseif match(a:choice,httpurm) == 0
3146 let g:netrw_machine= substitute(a:choice,httpurm,'\1',"")
3147 let b:netrw_fname = substitute(a:choice,httpurm,'\2',"")
3148 let b:netrw_http = (a:choice =~ '^https:')? "https" : "http"
3151 elseif match(a:choice,davurm) == 0
3154 if a:choice =~ 'davs:'
3155 let g:netrw_machine= 'https://'.substitute(a:choice,davurm,'\1/\2',"")
3157 let g:netrw_machine= 'http://'.substitute(a:choice,davurm,'\1/\2',"")
3159 let b:netrw_fname = substitute(a:choice,davurm,'\3',"")
3162 elseif match(a:choice,rsyncurm) == 0
3165 let g:netrw_machine= substitute(a:choice,rsyncurm,'\1',"")
3166 let b:netrw_fname = substitute(a:choice,rsyncurm,'\2',"")
3169 elseif match(a:choice,ftpurm) == 0
3171 let userid = substitute(a:choice,ftpurm,'\2',"")
3172 let g:netrw_machine= substitute(a:choice,ftpurm,'\3',"")
3173 let g:netrw_port = substitute(a:choice,ftpurm,'\4',"")
3174 let b:netrw_fname = substitute(a:choice,ftpurm,'\5',"")
3222 elseif match(a:choice,fetchurm) == 0
3225 let g:netrw_userid = substitute(a:choice,fetchurm,'\2',"")
3226 let g:netrw_machine= substitute(a:choice,fetchurm,'\3',"")
3227 let b:netrw_option = substitute(a:choice,fetchurm,'\4',"")
3228 let b:netrw_fname = substitute(a:choice,fetchurm,'\5',"")
3231 elseif match(a:choice,mipf) == 0
3234 let g:netrw_machine = substitute(a:choice,mipf,'\1',"")
3235 let g:netrw_uid = substitute(a:choice,mipf,'\2',"")
3236 let s:netrw_passwd = substitute(a:choice,mipf,'\3',"")
3237 let b:netrw_fname = substitute(a:choice,mipf,'\4',"")
3241 elseif match(a:choice,mf) == 0
3245 let g:netrw_machine = substitute(a:choice,mf,'\1',"")
3246 let b:netrw_fname = substitute(a:choice,mf,'\2',"")
3250 let g:netrw_machine = substitute(a:choice,mf,'\1',"")
3251 let b:netrw_fname = substitute(a:choice,mf,'\2',"")
3255 elseif match(a:choice,sftpurm) == 0
3258 let g:netrw_machine= substitute(a:choice,sftpurm,'\1',"")
3259 let b:netrw_fname = substitute(a:choice,sftpurm,'\2',"")
3262 elseif match(a:choice,rcphf) == 0
3265 let userid = substitute(a:choice,rcphf,'\2',"")
3266 let g:netrw_machine = substitute(a:choice,rcphf,'\3',"")
3267 let b:netrw_fname = substitute(a:choice,rcphf,'\4',"")
3268 " call Decho('\1<'.substitute(a:choice,rcphf,'\1',"").">",'~'.expand("<slnum>"))
3269 " call Decho('\2<'.substitute(a:choice,rcphf,'\2',"").">",'~'.expand("<slnum>"))
3270 " call Decho('\3<'.substitute(a:choice,rcphf,'\3',"").">",'~'.expand("<slnum>"))
3271 " call Decho('\4<'.substitute(a:choice,rcphf,'\4',"").">",'~'.expand("<slnum>"))
3277 elseif match(a:choice,fileurm) == 0 && exists("g:netrw_file_cmd")
3280 let b:netrw_fname = substitute(a:choice,fileurm,'\1',"")
3281 " call Decho('\1<'.substitute(a:choice,fileurm,'\1',"").">",'~'.expand("<slnum>"))
3300 " call Decho("a:choice <".a:choice.">",'~'.expand("<slnum>"))
8567 " choice = 0 : didn't have to choose
8568 " choice = 1 : saved modified file in window first
8569 " choice = 2 : didn't save modified file, opened window
8570 " choice = 3 : cancel open
8582 let choice = 0
8638 let choice = confirm("Save modified buffer<".prevbufname."> first?","&Yes\n&No\n&Cancel")
8639 " call Decho("prevbufname<".prevbufname."> choice=".choice." current-winnr#".winnr(),'~'.expand…
8642 if choice == 1
8651 " call Dret("s:NetrwPrevWinOpen ".choice." : unable to write <".prevbufname.">")
8652 return choice
8655 elseif choice == 2
8666 " call Dret("s:NetrwPrevWinOpen ".choice." : cancelled")
8667 return choice
8684 " call Dret("s:NetrwPrevWinOpen ".choice)
8685 return choice
9117 " s:NetrwSetTgt: sets the target to the specified choice index {{{2
9120 " See :help netrw-qb for how to make the choice.
9121 fun! s:NetrwSetTgt(islocal,bookhist,choice) argument
9122 " call Dfunc("s:NetrwSetTgt(islocal=".a:islocal." bookhist<".a:bookhist."> choice#".a:choice.")")
9126 let choice= a:choice - 1
9127 if exists("g:netrw_bookmarklist[".choice."]")
9128 call netrw#MakeTgt(g:netrw_bookmarklist[choice])
9130 echomsg "Sorry, bookmark#".a:choice." doesn't exist!"
9135 let choice= (a:choice % g:netrw_dirhistmax) + 1
9136 if exists("g:netrw_dirhist_".choice)
9137 let histentry = g:netrw_dirhist_{choice}
9140 echomsg "Sorry, history#".a:choice." not available!"