comparison runtime/doc/pi_netrw.txt @ 1698:f4f8014d516e v7.2c.000

updated for version 7.2c-000
author vimboss
date Wed, 06 Aug 2008 17:06:04 +0000
parents 0b796e045c42
children 5232b9862f23
comparison
equal deleted inserted replaced
1697:2f9308b31181 1698:f4f8014d516e
1 *pi_netrw.txt* For Vim version 7.2b. Last change: 2008 Jul 13 1 *pi_netrw.txt* For Vim version 7.2c. Last change: 2008 Aug 01
2 2
3 ----------------------------------------------------- 3 -----------------------------------------------------
4 NETRW REFERENCE MANUAL by Charles E. Campbell, Jr. 4 NETRW REFERENCE MANUAL by Charles E. Campbell, Jr.
5 ----------------------------------------------------- 5 -----------------------------------------------------
6 6
1435 For Linux/Unix systems, the book "Linux Server Hacks - 100 industrial strength 1435 For Linux/Unix systems, the book "Linux Server Hacks - 100 industrial strength
1436 tips & tools" by Rob Flickenger (O'Reilly, ISBN 0-596-00461-3) gives a tip 1436 tips & tools" by Rob Flickenger (O'Reilly, ISBN 0-596-00461-3) gives a tip
1437 for setting up no-password ssh and scp and discusses associated security 1437 for setting up no-password ssh and scp and discusses associated security
1438 issues. It used to be available at http://hacks.oreilly.com/pub/h/66 , 1438 issues. It used to be available at http://hacks.oreilly.com/pub/h/66 ,
1439 but apparently that address is now being redirected to some "hackzine". 1439 but apparently that address is now being redirected to some "hackzine".
1440 I'll attempt a summary: 1440 I'll attempt a summary based on that article and on a communication from
1441 1441 Ben Schmidt:
1442 1. Generate a public/private key pair on the ssh server: 1442
1443 ssh-keygen -t rsa 1443 1. Generate a public/private key pair on the local machine
1444 (saving the file in ~/.ssh/id_rsa is ok) 1444 (ssh client): >
1445 2. Just hit the <CR> when asked for passphrase (twice). 1445 ssh-keygen -t rsa
1446 3. This creates two files: 1446 (saving the file in ~/.ssh/id_rsa as prompted)
1447 ~/.ssh/id_rsa 1447 <
1448 ~/.ssh/id_rsa.pub 1448 2. Just hit the <CR> when asked for passphrase (twice) for no
1449 4. On the client: 1449 passphrase. If you do use a passphrase, you will also need to use
1450 cd 1450 ssh-agent so you only have to type the passphrase once per session.
1451 mkdir .ssh 1451 If you don't use a passphrase, simply logging onto your local
1452 chmod 0700 .ssh 1452 computer or getting access to the keyfile in any way will suffice
1453 scp {serverhostname}:.ssh/id_rsa.pub . 1453 to access any ssh servers which have that key authorized for login.
1454 cat id_rsa.pub >> .ssh/authorized_keys2 1454
1455 3. This creates two files: >
1456 ~/.ssh/id_rsa
1457 ~/.ssh/id_rsa.pub
1458 <
1459 4. On the target machine (ssh server): >
1460 cd
1461 mkdir -p .ssh
1462 chmod 0700 .ssh
1463 <
1464 5. On your local machine (ssh client): (one line) >
1465 ssh {serverhostname}
1466 cat '>>' '~/.ssh/authorized_keys2' < ~/.ssh/id_rsa.pub
1467 <
1468 or, for OpenSSH, (one line) >
1469 ssh {serverhostname}
1470 cat '>>' '~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub
1471 <
1472 You can test it out with >
1473 ssh {serverhostname}
1474 and you should be log onto the server machine without further need to type
1475 anything.
1476
1477 If you decided to use a passphrase, do: >
1478 ssh-agent $SHELL
1479 ssh-add
1480 ssh {serverhostname}
1481 You will be prompted for your key passphrase when you use ssh-add, but not
1482 subsequently when you use ssh. For use with vim, you can use >
1483 ssh-agent vim
1484 and, when next within vim, use >
1485 :!ssh-add
1486 Alternatively, you can apply ssh-agent to the terminal you're planning on
1487 running vim in: >
1488 ssh-agent xterm &
1489 and do ssh-add whenever you need.
1455 1490
1456 For Windows, folks on the vim mailing list have mentioned that Pageant helps 1491 For Windows, folks on the vim mailing list have mentioned that Pageant helps
1457 with avoiding the constant need to enter the password. 1492 with avoiding the constant need to enter the password.
1458 1493
1459 Kingston Fung wrote about another way to avoid constantly needing to enter 1494 Kingston Fung wrote about another way to avoid constantly needing to enter
1625 Related topics: |netrw-a| |g:netrw_list_hide| 1660 Related topics: |netrw-a| |g:netrw_list_hide|
1626 1661
1627 MARKED FILES: MOVING *netrw-mm* {{{2 1662 MARKED FILES: MOVING *netrw-mm* {{{2
1628 (See |netrw-mf| and |netrw-mr| for how to mark files) 1663 (See |netrw-mf| and |netrw-mr| for how to mark files)
1629 (uses the global marked file list) 1664 (uses the global marked file list)
1665
1666 WARNING: moving files is more dangerous than copying them.
1667 A file being moved is first copied and then deleted; if the
1668 copy operation fails and the delete succeeds, you will lose
1669 the file. Either try things out with unimportant files
1670 first or do the copy and then delete yourself using mc and D.
1671 Use at your own risk!
1630 1672
1631 Select a target directory with mT (|netrw-mt|). Then change directory, 1673 Select a target directory with mT (|netrw-mt|). Then change directory,
1632 select file(s) (see |netrw-mf|), and press "mm". 1674 select file(s) (see |netrw-mf|), and press "mm".
1633 1675
1634 Associated setting variable: |g:netrw_localmovecmd| |g:netrw_ssh_cmd| 1676 Associated setting variable: |g:netrw_localmovecmd| |g:netrw_ssh_cmd|
2385 NdrOchip at ScampbellPfamily.AbizM - NOSPAM 2427 NdrOchip at ScampbellPfamily.AbizM - NOSPAM
2386 < 2428 <
2387 ============================================================================== 2429 ==============================================================================
2388 12. History *netrw-history* {{{1 2430 12. History *netrw-history* {{{1
2389 2431
2432 v130: Jul 31, 2008 * trying out elinks/links for http://host/
2433 requests. One problem: in-page links
2434 (such as with ...#LABEL) are not supported
2435 * verified that Bram's modified netrwPlugin works
2436 Aug 01, 2008 * fixed a bug: when sourcing a file via ftp, the
2437 "filter window" was left behind.
2438 v129: Jul 31, 2008 * bug found in non-mouse enabled vim and some
2439 local maps
2440 v128: Jul 30, 2008 * much work done in using shellescape() and
2441 fnameescape()
2390 v126: Jun 30, 2008 * after having gone to a remote directory, 2442 v126: Jun 30, 2008 * after having gone to a remote directory,
2391 <f1> was no longer taking one to the correct 2443 <f1> was no longer taking one to the correct
2392 entry in the help (|netrw-quickhelp|). Fixed. 2444 entry in the help (|netrw-quickhelp|). Fixed.
2393 Jul 01, 2008 * extracting the last filename from a wide listing 2445 Jul 01, 2008 * extracting the last filename from a wide listing
2394 missed the last letter when |'virtualedit'| not 2446 missed the last letter when |'virtualedit'| not