How to install vim plugin under cygwin?

I installed cygwin on my windows computer. There is no .vim directory in my cygwin home directory. How to install vim plugin in this case?

By the way, what plugins are offered for HTML / CSS / JavaScript development?

Thanks!

+8
vim cygwin vim-plugin
source share
3 answers

I have Cygwin installed on WinXP: I needed to create a .vim tree directory for it to work.

Basically, create a .vim directory in your ~ / and untar plugins there, as recommended by khachik. It should create appropriate subdirectories, such as autoload, doc, etc., if your plugins are properly packaged.

You will also need to create .vimrc in ~ / if you want to customize your installation.

To work with HTML, I recommend using Tim Papa’s surround plugin . It is very useful to quickly add / remove tags.

There is a cygwin / vim related question that can answer some of your problems here: How to use my .vimrc file in Cygwin?

+4
source share

You can use Vundle plugin manager in cygwin.

Get it here.

To install it, you simply clone it into your home dictator. But since git and cygwin will interpret the path differently, you have to do:

$ git clone https://github.com/VundleVim/Vundle.vim.git /cygwin64/home/USERNAME/.vim/bundle/Vundle.vim 

Just follow the instructions. In the end, you should change vimrc, similar to installing Windows, but in this case you only need to change

 set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() 

to

 set rtp+=c:/cygwin64/home/USERNAME/.vim/bundle/Vundle.vim/ call vundle#begin('c:/cygwin64/home/USERNAME/.vim/bundle/') 

after that you will have all the comfort of vundle in vim.

+2
source share

For HTML, I offer an unofficial Zencoding plugin.

+1
source share

Source: https://habr.com/ru/post/650151/


All Articles