• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/vim-55/runtime/autoload/

Lines Matching +refs:browse +refs:url +refs:of +refs:file

1 " netrw.vim: Handles file transfer and remote directory listing across
12 " *as is* and come with no warranty of any kind, either
15 " resulting from the use of this software.
18 " But be doers of the Word, and not only hearers, deluding your own selves {{{1
28 echo "***warning*** this version of netrw needs vim 7.2"
40 call netrw#ErrorMsg(s:WARNING,"you need vim version 7.0 or later for version ".g:loaded_netrw." of netrw",1)
170 call s:NetrwInit("g:netrw_ftp_browse_reject", '^total\s\+\d\+$\|^Trying\s\+\d\+.*$\|^KERBEROS_V\d rejected\|^Security extensions not\|No such file\|: connect to address [0-9a-fA-F:]*: No route to host$')
484 let choice= confirm("Remove personal and system copies of netrw?","&Yes\n&No")
486 let choice= confirm("Remove personal copy of netrw?","&Yes\n&No")
513 echomsg "removed one copy of netrw from <".diddir.">"
515 echomsg "removed ".diddel." copies of netrw"
537 " netrw#NetRead: responsible for reading a file over the net {{{2
538 " mode: =0 read remote file and insert before current line
539 " =1 read remote file and insert after current line
540 " =2 replace with remote file
541 " =3 obtain file, but leave in temporary format
551 if a:mode == 0 " read remote file before current line
553 elseif a:mode == 1 " read file after current line
555 elseif a:mode == 2 " replace with remote file
557 elseif a:mode == 3 " skip read of file (leave as temporary)
575 " attempt to repeat with previous host-file-etc
633 " NetRead: Determine method of read (ftp, rcp, etc) {{{3
662 " ER: on Win2K" rcp machine[.user]:file tmpfile
707 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
717 " needed when one sources a file in a nolbl setting window via ftp
769 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
941 " netrw#NetWrite: responsible for writing a file over the net {{{2
966 " For binary writes, always write entire file.
968 " Also supports the writing of tar and zip files.
969 " call Decho("(write entire file) silent exe w! ".fnameescape(v:cmdarg)." ".fnameescape(tmpfile))
972 " write (selected portion of) file to temporary
977 " write (selected portion of) file to temporary
983 " if the file is [No Name], and one attempts to Nwrite it, the buffer takes
984 " on the temporary file's name. Deletion of the temporary file during
986 0file!
993 " attempt to repeat with previous host-file-etc
1045 " Determine method of write (ftp, rcp, etc) {{{4
1111 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
1175 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
1310 " uses NetRead to get a copy of the file into a temporarily file,
1311 " then sources that file,
1312 " then removes that file.
1348 " s:NetrwGetFile: Function to read temporary file "tfile" with command "readcmd". {{{2
1349 " readcmd == %r : replace buffer with newly read file
1350 " == 0r : read file at top of buffer
1351 " == r : read file after current line
1352 " == t : leave file in temporary form (ie. don't read into buffer)
1359 " call Dret("NetrwGetFile : skip read of <".a:tfile.">")
1363 " get name of remote filename (ie. url and all)
1368 " for the use of NetReadFixup (not otherwise used internally)
1373 " get file into buffer
1374 " call Decho("get file into buffer")
1376 " rename the current buffer to the temp file (ie. tfile)
1382 " call Decho("exe sil! keepalt file ".fnameescape(tfile))
1383 exe "sil! keepalt file ".fnameescape(tfile)
1385 " edit temporary file (ie. read the temporary file in)
1387 " call Decho("handling remote zip file with zip#Browse(tfile<".tfile.">)")
1390 " call Decho("handling remote tar file with tar#Browse(tfile<".tfile.">)")
1393 " call Decho("handling remote gzip-compressed tar file")
1396 " call Decho("handling remote bz2-compressed tar file")
1399 " call Decho("handling remote xz-compressed tar file")
1402 " call Decho("handling remote xz-compressed tar file (.txz)")
1405 " call Decho("edit temporary file")
1410 " call Decho("exe sil! keepalt file ".fnameescape(rfile))
1411 exe "sil! keepalt file ".fnameescape(rfile)
1418 " read file after current line
1419 " call Decho("read file<".a:tfile."> after current line")
1431 call netrw#ErrorMsg(s:WARNING,"file <".a:tfile."> not readable",9)
1451 " make sure file is being displayed
1459 " s:NetrwMethod: determine method of transfer {{{2
1461 " choice = url [protocol:]//[userid@]hostname[:port]/[path-to-file]
1475 " g:netrw_choice = copy of input url (choice)
1521 " rcp://user@hostname/...path-to-file
1532 " scp://user@hostname/...path-to-file
1540 " http://user@hostname/...path-to-file
1547 " dav://hostname[:port]/..path-to-file..
1558 " rsync://user@hostname/...path-to-file
1565 " ftp://[user@]hostname[[:#]port]/...path-to-file
1606 " call Decho("(ftp) host id pass file")
1615 " call Decho("(ftp) host file")
1627 " sftp://user@hostname/...path-to-file
1636 " call Decho("(rcp) [user@]host:file) rcphf<".rcphf.">")
1676 " NetReadFixup: this sort of function is typically written by the user {{{2
1681 " at the end of the transfer.
2207 silent! file .netrwhist
2248 " list of the contents of a local or remote directory. It is assumed that the
2300 " looks like a regular file, attempt transfer
2301 " call Decho("attempt transfer as regular file<".dirname.">")
2303 " remove any filetype indicator from end of dirname, except for the {{{3
2305 " There shouldn't be one of those here, anyway.
2310 " remote-read the requested file into current buffer {{{3
2317 " call Decho("exe sil! keepalt file ".fnameescape(s:method."://".s:user.s:machine."/".s:path)." (bt=".&bt.")")
2318 exe "sil! keepalt file ".fnameescape(s:method."://".s:user.s:machine."/".s:path)
2322 " netrw.vim and tar.vim have already handled decompression of the tarball; avoiding gzip.vim error
2332 " call Dret("s:NetrwBrowse : file<".s:fname.">")
2396 " handle g:netrw_keepdir: set vim's current directory to netrw's notion of the current directory {{{3
2467 " the variable below avoids that second refresh of the screen. The s:LocalBrowseShellCmdRefresh()
2478 " s:NetrwFileInfo: supports qf (query for file information) {{{2
2495 " use vim functions to return information about file below cursor
2496 " call Decho("using vim functions to query for file info")
2539 " find buffer number of buffer named precisely the same as dirname {{{3
2540 " call Decho("--find buffer numnber of buffer named precisely the same as dirname--")
2625 " call Decho(" exe sil! keepalt file NetrwTreeListing ".fnameescape(s:netrw_treelistnum))
2626 exe 'sil! keepalt file NetrwTreeListing\ '.fnameescape(s:netrw_treelistnum)
2637 " call Decho(' exe sil! keepalt file '.escdirname)
2639 exe 'sil! keepalt file '.escdirname
2656 " call Decho("exe sil! keepalt file ".fnameescape(getcwd()))
2657 exe "sil! keepalt file ".fnameescape(getcwd())
2677 " do netrw settings: make this buffer not-a-file, modifiable, not line-numbered, etc {{{3
2682 " call Decho("--do netrw settings: make this buffer#".bufnr("%")." not-a-file, modifiable, not line-numbered, etc--")
2685 " call Decho("exe sil! keepalt file ".fnameescape(fname))
2686 exe "sil! keepalt file ".fnameescape(fname)
2715 " s:NetrwGetWord: it gets the directory/file named under the cursor {{{2
2827 " call Decho("exe sil! keepalt file ".fnameescape(fname))
2828 exe "sil! keepalt file ".fnameescape(fname)
2910 " s:NetrwBannerCtrl: toggles the display of the banner {{{2
2997 " "new directory name" is actually a file,
2998 " NetrwBrowseChgDir() edits the file.
3041 " edit a file:
3043 " call Decho('case "handling a file": newdir<'.newdir.'> !~ dirpat<'.dirpat.">")
3058 " call Decho("handling a file: dirname<".dirname."> (a:0=".a:0.")")
3082 " handling a file, didn't split, so remove menu
3083 " call Decho("handling a file+didn't split, so remove menu")
3092 " the point where netrw actually edits the (local) file
3093 " if its local only: LocalBrowseCheck() doesn't edit a file, but NetrwBrowse() will
3095 " call Decho("edit local file: exe e! ".fnameescape(dirname))
3098 " call Decho("remote file: NetrwBrowse will edit it")
3104 " or as a list of function references. It will ignore anything that's not
3112 " call Decho("handling a list of g:Netrw_funcrefs")
3276 " g:Netrw_corehandler is a List of function references (see :help Funcref)
3290 " (lower case the extension, make a local copy of a remote file)
3314 " call Decho("a:remote=".a:remote.": create a local copy of <".a:fname.">")
3376 " execute the file handler
3389 " call Decho('exe silent !start rundll32 url.dll,FileProtocolHandler '.shellescape(fname,1))
3390 exe 'silent !start rundll32 url.dll,FileProtocolHandler '.shellescape(fname,1)
3392 " call Decho('exe silent !rundll32 url.dll,FileProtocolHandler '.shellescape(fname,1))
3393 exe 'silent !rundll32 url.dll,FileProtocolHandler '.shellescape(fname,1)
3425 " restoring redraw! after external file handlers
3428 " cleanup: remove temporary file,
3431 " Feb 12, 2008: had to de-activiate removal of
3432 " temporary file because it wasn't getting seen.
3434 " call Decho("deleting temporary file<".fname.">")
3451 " s:NetrwChgPerm: (implements "gp") change file permission {{{2
3462 call netrw#ErrorMsg(1,"changing permission on file<".expand("<cfile>")."> seems to have failed",75)
3491 " netrw#Explore: launch the local browser in the directory of the current file {{{2
3496 " indx'th item in the w:netrw_explore_list[] of items which
3499 " g:netrw_winsize to specify the qty of rows or columns the
3501 " dosplit==0: the window will be split iff the current file has been modified
3522 " if dosplit or file has been modified
3524 " call Decho("case dosplit=".a:dosplit." modified=".&modified." a:style=".a:style.": dosplit or file has been modified")
3657 " call Decho("empty dirname, using current file's directory<".dirname.">")
3746 " build list of files to Explore with Nexplore/Pexplore
3755 " switch on starpat to build the w:netrw_explore_list of files
3878 " visual display of **/ **// */ Exploration files
4062 " check if the status bar was clicked on instead of a file/directory name
4133 " NetrwHideEdit: allows user to edit the file/directory hiding list
4179 " get name of new directory from user. A bare <CR> will skip.
4208 call netrw#ErrorMsg(s:WARNING,"<".newdirname."> is already a file!",25)
4210 " call Dret("NetrwMakeDir : file<".newdirname."> exists previously")
4214 " requested new local directory is neither a pre-existing file or
4273 " of whatever may happen to be under the cursor at that
4279 " s:netrwmarkfilelist_# -- holds list of marked files in current-buffer's directory (#==bufnr())
4281 " Creates a marked file match string
4284 " Creates a buffer version of islocal
4419 call netrw#ErrorMsg(s:WARNING,"unable to apply<".exe."> to file<".fname.">",50)
4428 " fname not a compressed file, so compress it
4431 " fname not a compressed file, so compress it
4446 " directories. Uses the local-buffer marked file list.
4460 call netrw#ErrorMsg(2,"your marked file target is empty! (:help netrw-mt)",67)
4540 " Uses the global marked file list.
4593 " Uses the local marked-file list.
4603 let cmd= input("Enter command: ","","file")
4637 " unmark marked file list
4652 " as the marked file(s) (toggles suffix presence)
4653 " Uses the local marked file list.
4659 " s:netrwmarkfilelist_{curbufnr}: the List of marked files
4750 " uses the global marked file list
4766 call netrw#ErrorMsg(2,"your marked file target is empty! (:help netrw-mt)",67)
4853 " using the hardcopy command. Local marked-file list only.
4891 let regexp= input("Enter regexp: ","","file")
4895 " get the matching list of files using local glob()
4902 " mark the list of files
4957 " Uses the local marked file list.
5024 " s:NetrwMarkFileTgt: (invoked by mt) This function sets up a marked file target {{{2
5047 " * If file, use b:netrw_curdir for the target
5115 " s:NetrwUnmarkList: delete local marked file lists and remove their contents from the global marked-file list {{{2
5119 " remove all files in local marked-file list from global list
5123 let idx = index(s:netrwmarkfilelist,dfile) " get index in list of dfile
5130 " getting rid of the local marked-file lists is easy
5141 " s:NetrwUnmarkAll: remove the global marked file list and all local ones {{{2
5177 " unmark marked file list (although I expect s:NetrwUpload()
5278 " s:NetrwObtain: obtain file under cursor or from markfile list {{{2
5299 " fname : a filename or a list of filenames
5323 " obtain a file from local b:netrw_curdir to (local) tgtdir
5324 " call Decho("obtain a file from local ".b:netrw_curdir." to ".tgtdir)
5349 " call Decho("obtain a file from remote ".b:netrw_curdir." to ".tgtdir)
5356 " obtain file using scp
5373 " obtain file using ftp + .netrc
5403 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
5467 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
5499 " s:NetrwPrevWinOpen: open file/directory in previous window. {{{2
5503 " choice = 1 : saved modified file in window first
5504 " choice = 2 : didn't save modified file, opened window
5509 " grab a copy of the b:netrw_curdir to pass it along to newly split windows
5551 let choice = confirm("Save modified file<".bufname.">?","&Yes\n&No\n&Cancel")
5555 " Yes -- write file & then browse
5570 " No -- don't worry about changed file, just browse anyway
5625 " handle uploading a single file using NetWrite
5626 " call Decho("handle uploading a single file via NetWrite")
5643 " handle uploading a list of files via scp
5644 " call Decho("handle uploading a list of files via scp")
5665 " handle uploading a list of files via ftp+.netrc
5697 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
5756 " If the result of the ftp operation isn't blank, show an error message (tnx to Doug Claar)
5824 " restore file marks
5918 " sometimes multiple sorting patterns will match the same file or directory.
6064 return "Match ".w:netrw_explore_mtchcnt." of ".w:netrw_explore_listlen
6397 " get list of files
6398 " call Decho("Get list of files - islocal=".a:islocal)
6465 " place cursor on the top-left corner of the file listing
6466 " call Decho("place cursor on top-left corner of file listing")
6577 " use ftp to get remote file listing
6578 " call Decho("use ftp to get remote file listing")
6632 " use ssh to get remote file listing {{{3
6633 " call Decho("use ssh to get remote file listing: s:path<".s:path.">")
6639 " remove rubbish and adjust listing format of 'pscp' to 'ssh ls -FLa' like
6715 " s:NetrwRemoteRm: remove/delete a remote file or directory {{{2
6772 " attempt to remove file
6773 " call Decho("attempt to remove file (all=".all.")")
6778 let ok= input("Confirm deletion of file<".a:rmfile."> ","[{y(es)},n(o),a(ll),q(uit)] ")
6835 let ok= input("Confirm deletion of directory<".a:rmfile."> ","[{y(es)},n(o),a(ll),q(uit)] ")
6881 " and reverse sorts will be requested of the server but not otherwise
6962 " infer directory/link based on the file permission string
6989 " s:NetrwRemoteRename: rename a remote file or directory {{{2
7075 " refreshes (and would do so in the middle of NetrwSaveOptions(), too)
7092 " s:LocalListing: does the job of "ls" for local directories {{{2
7103 " get the list of files contained in the current directory
7192 " normal file
7200 " normal file
7205 " normal file
7236 " sort by size (handles file sizes up to 1 quintillion bytes, US)
7251 " cleanup any windows mess at end-of-line
7265 " on the chance that s/he removed/created a file/directory with it.
7384 " s:NetrwLocalRmFile: remove file fname given the path {{{2
7396 " attempt to remove file
7397 " call Decho("attempt to remove file<".rmfile.">")
7401 let ok= input("Confirm deletion of file<".rmfile."> ","[{y(es)},n(o),a(ll),q(uit)] ")
7425 let ok= input("Confirm deletion of directory<".rmfile."> ","[{y(es)},n(o),a(ll),q(uit)] ")
7469 " s:NetrwLocalRename: rename a remote file or directory {{{2
7554 " initialize browselist, a list of buffer numbers that the local browser has used
7568 " If local browse buffer is currently showing: refresh it
7569 " If local browse buffer is currently hidden : wipe it
7643 file NetrwMessage
7677 " netrw#NetrwRestorePosn: restores the cursor and file position as saved by NetrwSavePosn() {{{2
7701 " restore top-of-screen line
7718 " netrw#NetrwSavePosn: saves position of cursor on screen {{{2
7727 " Save top-of-screen line
7796 " keeping initial '//' for the benefit of network share listing support
7823 " Places correct suffix on end of temporary filename,
7836 " sanity check -- does the temporary file's directory exist?
7866 " use fname's suffix for the temporary file
7970 " s:NetrwDelete: Deletes a file. {{{2
7973 " Examples of use: let result= s:NetrwDelete(path)
8006 " grab a function-local-variable copy of buffer variables
8007 " call Decho("make function-local copy of netrw variables")
8056 file NetrwTreeListing
8061 exe "sil! keepalt file ".fnameescape(b:netrw_curdir)
8292 " s:Strlen: this function returns the length of a string, even if its {{{2
8300 " number of codepoints (Latin a + combining circumflex is two codepoints)
8305 " number of spacing codepoints (Latin a + combining circumflex is one spacing
8349 let nl = search('^'.indentm1.'[^|]','bWe') " search backwards from regular file
8353 let nl = search('^'.indentm1.'[^|]','We') " search forwards from regular file