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:
- download http://www.vim.org/scripts/script.php?script_id=1502
cd to ~/.vim/plugin
gunzip
tar -oxvf <file>
---------------------------------------------------
install the netrw vimball:
- download http://www.vim.org/scripts/script.php?script_id=1075
vim <file>
:so %
: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