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'
Related
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)
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
I am trying to installing plugins on vim and i managed to install nerdtree and pathogen, now i'm trying to install surround.vim and i'm getting an error message such as E149 no help for surround command. I haven't added anything to the vimrc file but i don't know what i should add to it for this to work can someone please advise on this?
Assuming you've installed the Surround plugin in ~/.vim/, you have to re-generate the help tags database via:
:helptags ~/.vim/doc
After that, commands such as :help surround should open the corresponding help page.
If you use a plugin manager, you may have to adapt the path. Some managers also can do this update automatically.
I just installed gvim on fresh installation of ubuntu lucid. I've messed this up before that's why I want to start on the correct step here.
Where should I keep all my plugins and my .vimrc??
my current runtimepath on gvim is:
runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
one thing that i've never been able to get working on gvim is snipMate. Anyone has pointers on having that work with gvim?
I use pathogen with ~/.vimrc and plugins in ~/.vim/bundle, more details here. You can see an example here.
Plugin folder is always under ~home/.vim or ~home/vimfiles your vim configuration file or .vimrc always in your ~home/ as for example: ~home/.vimrc
Snipmate fully works for me under Ubuntu. unzip it correclty and it should work right. BTW a great great plugin.
I plan to switch to vim 7.3 in the next days on my windows box - linux will soon follow. I also plan to switch my vim setup and let pathogen handle my plugins.
I've googled but not yet found a solution how to handle plugins using vimball technique for setup. Any hints?
You are looking for :UseVimball [path]
Open the vimball up with vim. Instead of sourcing it with :so % do
$ vim somthing.vba
:!mkdir ~/.vim/bundle/bundle-dir-name-here
:UseVimball ~/.vim/bundle/bundle-dir-name-here
Note you will have to make sure the path exists before you execute this command.
:h :UseVimball
You can try vim-addon-manager: it is able to put every plugin in a separate directory and correctly handles Vimball.