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
2
2
3
3
------------------------------------------------
4
4
NETRW REFERENCE MANUAL by Charles E. Campbell
@@ -1471,7 +1471,6 @@ permission to remove a file, it will issue an error message.
1471
1471
1472
1472
*netrw-gx*
1473
1473
CUSTOMIZING BROWSING WITH A SPECIAL HANDLER *netrw-x* *netrw-handler* {{{2
1474
- (also see | netrw_filehandler | )
1475
1474
1476
1475
Certain files, such as html, gif, jpeg, (word/office) doc, etc, files, are
1477
1476
best 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:
1490
1489
< or >
1491
1490
:let g:netrw_browsex_viewer= "xdg-open"
1492
1491
<
1493
- If g:netrw_browsex_viewer == '-', then netrwFileHandlers#Invoke() will be
1494
- used instead (see | netrw_filehandler | ).
1495
-
1496
1492
If the viewer you wish to use does not support handling of a remote URL
1497
1493
directory, set | g:netrw_browsex_support_remote | to 0.
1498
1494
* for Windows 32 or 64, the URL and FileProtocolHandler dlls are used.
1499
1495
* for Gnome (with gnome-open): gnome-open is used.
1500
1496
* for KDE (with kfmclient) : kfmclient is used
1501
1497
* 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.
1508
1498
1509
1499
The gx mapping extends to all buffers; apply "gx" while atop a word and netrw
1510
1500
will apply a special handler to it (like "x" works when in a netrw buffer).
@@ -1521,46 +1511,6 @@ Associated setting variables:
1521
1511
| g:netrw_nogx | prevent gx map while editing
1522
1512
| g:netrw_suppress_gx_mesg | controls gx's suppression of browser messages
1523
1513
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
-
1564
1514
*netrw-curdir*
1565
1515
DELETING BOOKMARKS *netrw-mB* {{{2
1566
1516
@@ -2583,12 +2533,7 @@ your browsing preferences. (see also: |netrw-settings|)
2583
2533
*g:netrw_browsex_viewer* specify user's preference for a viewer: >
2584
2534
"kfmclient exec"
2585
2535
"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
+ <
2592
2537
*g:netrw_browsex_support_remote*
2593
2538
specify if the specified viewer supports a
2594
2539
remote URL. (see | netrw-handler | ).
0 commit comments