Introduction
There are situations when you really want to use your favorite editor, but you don’t have * nix operating systems at hand, or the development is done on Windows.
The first thing that comes to mind is the use of the
gVim version of
Windows , but in this case there are a lot of problems with installing plug-ins, transferring configs and adapting everything and everything. Something will not compile without a tambourine (for example,
Ctrl-p ), but something will fall during operation.
Cygwin and Mintty to the rescue
We download from the
site and install the latest version of
Cygwin .
When installing, choose any mirror from the list of available.
Choose the following packages:
')
- git
- Vim
- ruby
- libsasl2
- ca-certificates
While the packages are swinging and being installed, it's time to get a convenient terminal. My choice fell on
mintty . Installation is performed by copying mintty.exe to the Cygwin bin folder.
In order that everything looked decent - it needs to be readjusted. Run mintty, right-click on the icon in the upper left corner of the console and select "Options ...".
Turn off the Blinking option, so as not to distract, choose the usual Block as the cursor.
Choose a font to your taste, set anti-aliasing to Full, Locale - C, Character Set - UTF-8.
It is very important to put the terminal type in xterm-256color.
Vim
One undoubted advantage of this approach is that you can now use the same Vim configuration as in the * nix system. And we also have a full-fledged console at our disposal and can work with Windows files using the grep, find, ack utilities.
I recommend to create a private repository with all configs absolutely free of charge on some Bitbucket. Such collections are usually called dotfiles.
One nice discovery in terms of Vim configuration is for me
Vimified , which is based on
Vundle .
It is better to put it in steps, and then you missed something during the installation of Cygwin.
Installation steps are detailed in the description of the repository.
cd git clone git://github.com/zaiste/vimified.git ln -sfn vimified ~/.vim ln -sfn vimified/vimrc ~/.vimrc cd vimified
Then
mkdir bundle mkdir -p tmp/backup tmp/swap tmp/undo
Clone Vundle
git clone https://github.com/gmarik/vundle.git bundle/vundle
The first launch of Vim may fail with errors due to the fact that the packages provided by the configuration have not yet been installed, but this is not a problem.
vim +BundleInstall +qall
Restart Vim. And this is what we should get after minor adjustments and corrections.
Conclusion
As a result, we received:
- Full Vim Worker
- Nice color scheme and palette that pleases the eye
- Works scrolling mouse wheel (for fans)
- It works by resizing panels by simply clicking and dragging
Thanks for attention. I hope someone will come in handy.
Error notifications - habraposchta.