Adding/Installing vim plugins - vim

I am trying to add Ack grep plugin .After downloading the file I unzipped the file and copied ack.vim from the plugin directory to .vim/bundle
However when I launch a gvim and do something like this
:Ack foo
I get Ack is not an editor command
Any suggestions on how I can install this plugin ?

Use a plugin manager like Vundle. After following the instructions on the Vundle webpage to install it you can add Plugin 'mileszs/ack.vim' in the list of plugins in your .vimrc. after simply :BundleInstall and it will automatically install.

I already have pathogen thats why i am dumping the .vim in bundle
What's the point of installing a tool like pathogen if you don't bother learning how to use it?
You are supposed to put the whole directory in ~/.vim/bundle/:
~/.vim/bundle/
~/.vim/bundle/ack.vim-master/autoload/
~/.vim/bundle/ack.vim-master/autoload/ack.vim
~/.vim/bundle/ack.vim-master/doc/
~/.vim/bundle/ack.vim-master/doc/ack_quick_help.txt
~/.vim/bundle/ack.vim-master/doc/ack.txt
~/.vim/bundle/ack.vim-master/ftplugin/
~/.vim/bundle/ack.vim-master/ftplugin/qf.vim
~/.vim/bundle/ack.vim-master/plugin/
~/.vim/bundle/ack.vim-master/plugin/ack.vim

You need to install Ack on your system first.
For example, on Ubuntu:
sudo apt-get install Ack

Related

how to install Unite.vim in Vim?

I want to use Vim to write scientific articles, and was hoping to use
Citation.vim for references management along with Zotero.
https://github.com/vim-scripts/Citation.vim
To install Citation.vim, it is mentioned that Unite.vim has to be installed first.
https://github.com/Shougo/unite.vim
I am using the vim-plug plugin manager. I have cloned the files in my ~/.vim folder, but don't know how to install Unite.vim with the specific vim command.
https://github.com/junegunn/vim-plug
Does anyone has recommendations how to do it?
I found a way,using in Vim, or writing in .vimrc:
Plug 'Shougo/unite.vim'
Plug 'vim-scripts/Citation.vim'

How to install vim syntastic without package manager?

On syntastic repo https://github.com/vim-syntastic/syntastic#installation, the only example they provide for installing syntastic is using pathogen.
How should install it without pathogen or any package manager?
Pathogen is only needed for Vim 7 or earlier. In Vim 8 all "Pathogen's" functionality is already built-in, and you should never use it at all.
To install a plugin in Vim 8 you only have to put it under the following path: ~/.vim/pack/<bundle>/start/<plugin-name> Here <bundle> can be any name of your choice. Then restart Vim and issue :helptags ALL to rebuild help tags, and you're done.
There still remains a question how you'll be updating your plugins, but you can do it manually with git etc.
After reading the accepted answer I realised my problem was down to an error in the installation documentation for syntastic.
Where it says to restart vim and then type :Helptags it should actually say :helptags (with a lower-case H)

ycm_client_support.[so|pyd|dll] and ycm_core.[so|pyd|dll] not detected; you need to compile YCM before using it

orror in compile prses. how to solve it?
According to this blog post, you just have to compile the YouCompleteMe modules by running the install.sh script in the YCM install.
cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer
Once this completes you should be able to install the plugin (here's how to do it with Vundle). Once in Vim
:source ~/.vimrc
:PluginInstall
Apparently, when you run ./.install.sh --clang-completer it says that it is "out of date."
I ran python2 install.py and it worked for me. (I believe it was python2.)
Also, I had was using vim and neovim, and I decided to do ./install.sh --clang-completer inside my ~/.vim/bundle/Vundle.vim/ and at the same tim decided to do python2 install.py inside my ~/.configs/nvim/bundle/Vundle.vim/ and the python install installed faster and did the same thing.
The difference might be that you need to "compile vim with pdython support," but the simple fix for that is installing python-nvim (if using neovim), or - I think - vim just comes with python support. (? maybe.)
I encountered the same error message when trying out new neovim installation. In my case, it was because I was using vim-plugin and the plugins are installed in the ~/.vim/plugged instead of ~/.vim/bundle (this is the plugin folder for Vundle before I switched to vim-plug).
Thus, after scratching my head for few hours, turns out I have to run install.sh in the ~/.vim/plugged (not ~/.vim/bundle). I hope this will save someone's time.

vim-fireplace Connect command won't run

I've installed vim-fireplace, but the Connect command doesn't work. The error message is "Not an editor command: Connect". This leads me to believe I've messed up the installation but I can't figure out where I went wrong.
This is what I did:
I installed pathogen.
Then I ran these commands to install fireplace:
cd ~/.vim/bundle
git clone git://github.com/tpope/vim-fireplace.git
git clone git://github.com/tpope/vim-classpath.git
git clone git://github.com/guns/vim-clojure-static.git
This is my .vimrc
http://pastebin.com/7Mfk7xJD
You will likely find that it works after you do :set filetype=clojure. The plugin is only active when editing clojure files or when you run this command.
I had similar trouble, but found an answer in a blog posting and add my comments here:
http://cooljure.blogspot.com/2013/07/how-to-set-up-clojure-nrepl-using-vim.html
I am using Fedora 18, and the key seems to be that you need to create a project first using "lein new ", then begin both the vim edit session and the "lein repl" from within the project directory. Example:
> lein new fire
> cd fire
> lein repl
> gvim src/fire/core.clj
Besides installing vim-fireplace, vim-clojure-static, and vim-classpath, I also installed rainbow_parenthesis.vim as suggested by Tim Pope (author of fireplace). I first installed vim-pathgen to handle the vim runtime path setup. All of this is available on GitHub, starting at https://github.com/tpope/vim-fireplace
Alan Thompson
I had exactly the same problem and was able to run :Connect after (temporarily) removing everything from the .vimrc file except these three lines
set nocompatible
filetype plugin indent on
execute pathogen#infect()
Now I will start restoring step-by-step the rest of .vimrc until I found the "culprit".

Problem installing MRU.vim

I downloaded the MRU.vim file and put it in my /.vim folder (along with my other working plugins).
When I try to use
:MRU
i get
"E492: Not an editor command: MRU"
I'm using VIM v7.0 on Mac OSX Snow.
Any thoughts?
update
I installed MacVim which has an option to "Choose a vim script to run". When i load MRU from there MRU starts working.
I've added mru.vim to the autoload folder yet still no joy.
Did you copy it to the .vim/plugin folder?
probably file is in dos format
you can see this by writing
:set ff?
if result is dos
than try using:
:set ff=unix

Resources