1- *pi_netrw.txt* For Vim version 9.1. Last change: 2024 Jul 13
1+ *pi_netrw.txt* For Vim version 9.1. Last change: 2024 Oct 21
22
33 ------------------------------------------------
44 NETRW REFERENCE MANUAL by Charles E. Campbell
@@ -1471,7 +1471,6 @@ permission to remove a file, it will issue an error message.
14711471
14721472 *netrw-gx*
14731473CUSTOMIZING BROWSING WITH A SPECIAL HANDLER *netrw-x* *netrw-handler* {{{2
1474- (also see | netrw_filehandler | )
14751474
14761475Certain files, such as html, gif, jpeg, (word/office) doc, etc, files, are
14771476best seen with a special handler (ie. a tool provided with your computer's
@@ -1490,21 +1489,12 @@ Netrw determines which special handler by the following method:
14901489< or >
14911490 :let g:netrw_browsex_viewer= "xdg-open"
14921491<
1493- If g:netrw_browsex_viewer == '-', then netrwFileHandlers#Invoke() will be
1494- used instead (see | netrw_filehandler | ).
1495-
14961492 If the viewer you wish to use does not support handling of a remote URL
14971493 directory, set | g:netrw_browsex_support_remote | to 0.
14981494 * for Windows 32 or 64, the URL and FileProtocolHandler dlls are used.
14991495 * for Gnome (with gnome-open): gnome-open is used.
15001496 * for KDE (with kfmclient) : kfmclient is used
15011497 * for Mac OS X : open is used.
1502- * otherwise the netrwFileHandler plugin is used.
1503-
1504- The file's suffix is used by these various approaches to determine an
1505- appropriate application to use to "handle" these files. Such things as
1506- OpenOffice (*.sfx), visualization (*.jpg, *.gif, etc), and PostScript (*.ps,
1507- *.eps) can be handled.
15081498
15091499The gx mapping extends to all buffers; apply "gx" while atop a word and netrw
15101500will apply a special handler to it (like "x" works when in a netrw buffer).
@@ -1521,46 +1511,6 @@ Associated setting variables:
15211511 | g:netrw_nogx | prevent gx map while editing
15221512 | g:netrw_suppress_gx_mesg | controls gx's suppression of browser messages
15231513
1524- *netrw_filehandler*
1525-
1526- When | g:netrw_browsex_viewer | exists and is "-", then netrw will attempt to
1527- handle the special file with a vim function. The "x" map applies a function
1528- to a file, based on its extension. Of course, the handler function must exist
1529- for it to be called!
1530- >
1531- Ex. mypgm.html x -> NFH_html("scp://user@host/some/path/mypgm.html")
1532-
1533- < Users may write their own netrw File Handler functions to
1534- support more suffixes with special handling. See
1535- <autoload/netrwFileHandlers.vim> for examples on how to make
1536- file handler functions. As an example: >
1537-
1538- " NFH_suffix(filename)
1539- fun! NFH_suffix(filename)
1540- ..do something special with filename..
1541- endfun
1542- <
1543- These functions need to be defined in some file in your .vim/plugin
1544- (vimfiles\plugin) directory. Vim's function names may not have punctuation
1545- characters (except for the underscore) in them. To support suffices that
1546- contain such characters, netrw will first convert the suffix using the
1547- following table: >
1548-
1549- @ -> AT ! -> EXCLAMATION % -> PERCENT
1550- : -> COLON = -> EQUAL ? -> QUESTION
1551- , -> COMMA - -> MINUS ; -> SEMICOLON
1552- $ -> DOLLAR + -> PLUS ~ -> TILDE
1553- <
1554- So, for example: >
1555-
1556- file.rcs,v -> NFH_rcsCOMMAv()
1557- <
1558- If more such translations are necessary, please send me email: >
1559- 1560- with a request. (remove the embedded NOSPAM first)
1561-
1562- Associated setting variable: | g:netrw_browsex_viewer |
1563-
15641514 *netrw-curdir*
15651515DELETING BOOKMARKS *netrw-mB* {{{2
15661516
@@ -2583,12 +2533,7 @@ your browsing preferences. (see also: |netrw-settings|)
25832533 *g:netrw_browsex_viewer* specify user's preference for a viewer: >
25842534 "kfmclient exec"
25852535 "gnome-open"
2586- < If >
2587- "-"
2588- < is used, then netrwFileHandler() will look for
2589- a script/function to handle the given
2590- extension. (see | netrw_filehandler | ).
2591-
2536+ <
25922537 *g:netrw_browsex_support_remote*
25932538 specify if the specified viewer supports a
25942539 remote URL. (see | netrw-handler | ).
0 commit comments