mootools php faith camera linux

linux

FTP from inside VIM



I frequently need to ftp my current file - use this vimball plugin to do it from inside vim!

---------------------------------------------------
install the vimball architecture first into your (make if needed)
~/.vim/plugin directory:
  1. download http://www.vim.org/scripts/script.php?script_id=1502
  2. cd to ~/.vim/plugin
  3. gunzip
  4. tar -oxvf <file>

---------------------------------------------------
install the netrw vimball:
  1. download http://www.vim.org/scripts/script.php?script_id=1075
  2. vim <file>
  3. :so %
  4. :q

---------------------------------------------------
create your .netrc...example ~/.netrc:

machine 192.168.0.1
       login 
<user>
       
password <pass>


Note that if you do not setup a .netrc that you will be prompted for the login and password upon running the Nwrite command (see next section).
---------------------------------------------------
example update to ftp the file while IN THE FILE in vim:

:Nwrite ftp://192.168.0.1/path/to/destination/test.php



Last Updated: 2009-02-07 20:31:21
Creative Commons License Jay Johnston is a Zend Certified Engineer in PHP 5 LPI-ID: LPI000102450, Verfication Code: wmnnt56y2k  ... Jay Johnston is certified as LPIC-1 by the Linux Professional Institute