XMLTagsEditHistoryDiscussion

We all know Vim, the powerful UNIX* editor. If we are working on Windoze we like to use gVim to open remote files using sftp or something ... with this little how to we will bring Vim power to Windoze! ;-)

gVim

Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

gVim is just Vim with GUI :-).

WinSCP

WinSCP is an open source free SFTP client for Windows using SSH. Legacy SCP protocol is also supported. Its main function is safe copying of files between a local and a remote computer.

Download

gVim for Win32 self-installing executable

WinSCP installation package

Configuration

  1. Install gVim and WinSCP first.
  2. Open WinSCP, add a new connection (Example: f00@bar.com).
  3. Open Options → Preferences, select Editors.
  4. Click on Add.
  5. Select Editor type → External Editor.
  6. Now click on Browse and select your gVim executable (''Example: "C:\Archivos de programa\Vim\vim70\gvim.exe" !.! ).
  7. Check External editor options → External editor opens multiple files in one window (process)

Tabs support

gVim 7.0 has tabs support! so we are going to take advantage of this adding this line on Options → Preferences → Editors on WinSCP, select Gvim, click on Edit and replace the External Editor line for this one:

"C:\Archivos de programa\Vim\vim70\gvim.exe" --remote-tab-silent !.!

Now we have tabs! :D

Files types

Add this line on Options → Preferences → Editors on WinSCP, select Gvim, click on Edit, paste this on Editor autoselection box.

*.*html; *.htm; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml; *.js; *.sql;

Last update: 2007-08-20 (Rev 12793)

svnwiki $Rev: 12966 $