No edit summary |
(Remove html character entities) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=762 |
|id=762 |
||
+ | |previous=761 |
||
− | |title=Power FTP coming to Mac! |
||
+ | |next=763 |
||
− | |created=July 19, 2004 |
+ | |created=July 19, 2004 |
|complexity=basic |
|complexity=basic |
||
|author=Amir Salihefendic |
|author=Amir Salihefendic |
||
|version=5.7 |
|version=5.7 |
||
|rating=3/13 |
|rating=3/13 |
||
+ | |category1=Mac OS X |
||
− | |text= |
||
+ | |category2= |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | But it's all over! |
||
⚫ | |||
⚫ | |||
+ | <pre> |
||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
+ | </pre> |
||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
− | I think it's pretty smart :-)! |
||
− | |||
− | |||
− | |||
− | Also as you see it works by doing some Applescript. This is actually a pretty damn smart way of using AppleScript. Maybe there can be made more ways of using Applescript. |
||
− | |||
− | |||
− | |||
− | Ok, I hope you like my tip! |
||
− | |||
− | |||
− | |||
− | Kind regards, |
||
− | |||
− | Amir |
||
− | |||
− | http://amix.dk |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | And this has what to do with vim? |
||
⚫ | |||
− | '''Anonymous''' |
||
− | , July 22, 2004 6:51 |
||
− | ---- |
||
− | <!-- parsed by vimtips.py in 0.521006 seconds--> |
Revision as of 09:21, 29 September 2008
created July 19, 2004 · complexity basic · author Amir Salihefendic · version 5.7
I was really annoyed by the lack of Vim support by the FTP applications found on Mac OS X. None of them support Vim as an external editor. But there is a solution.
Download FTPeel (http://freshlysqueezedsoftware.com/products/ftpeel/). It's a great FTP app that has a feature called MagicMirror.
Here is it how it works:
- Define a local folder as a site root.
- Define a remote server as the mirror.
- Drag any files you want mirrored to FTPeel's dock icon!
Well - This features also works from Vim. That is, you open a local file, edit it and press some shortcuts to paste the file to FTPeel -- and FTPeel does its work.
FTPeel had a bug, but I have manually fixed it.
Here is what you need to add to your vimrc:
" FTPeel MagicMirror support fun! MagicMirrorIt() let path = substitute(expand("%:p"), '/', ":", "g") let nice_path = substitute(path, "^:", "", "") execute('!osascript -e "tell application \"FTPeel\" to open \"' . nice_path . '\""') endfun map <C-S> :call MagicMirrorIt()<CR>
First set up FTPeel. Then open your local file and when you want to upload it on the world wide web -- just hit Control-s