Reputation: 16752
There are no installation instructions for the tabular plugin. I tried either copying the files into the correct folders, or putting in under ~/.vim/bundle
to let pathogen deal with it, in both cases I get the following error messages when I load up vim (if it's of any concern, the message is repeated 6 times).
AddTabularPattern: Vim(runtime):E194: No alternate file name to substitute for '#': runtime autoload/tabular#ElementFormatPattern.vim
EDIT some more information if it will help diagnose the problem
Here is where the files are stored in my ~/.vim/bundles/godlygeek-tabular-b7b4d87
folder (not I obviously have not shown all files)
.vim/
├── [drwxrwxr-x] bundle
│ ├── [drwxrwxr-x] godlygeek-tabular-b7b4d87
│ │ ├── [drwxrwxr-x] after
│ │ │ └── [drwxrwxr-x] plugin
│ │ │ └── [-rw-rw-r--] TabularMaps.vim
│ │ ├── [drwxrwxr-x] autoload
│ │ │ └── [-rw-rw-r--] tabular.vim
│ │ ├── [drwxrwxr-x] doc
│ │ │ └── [-rw-rw-r--] Tabular.txt
│ │ └── [drwxrwxr-x] plugin
│ │ └── [-rw-rw-r--] Tabular.vim
Upvotes: 2
Views: 2204
Reputation: 834
IIRC, Tabular comes with an after directory which contains a plugin in its own directory, an autoload directory, a doc directory & a plugin directory.
So just copy the contents of those directories to their counterparts in $HOME/.vim/ (making any directory that does not already exist) & you're good to go.
Upvotes: 1
Reputation: 196456
Could you tell us a bit more about your setup? With a diagram if possible?
The AddTabularPattern
command is called exactly 6 times from after/plugin/TabularMaps.vim
and declared in plugin/Tabular.vim
. I don't see why it would trigger the expansion of #
, though.
Upvotes: 1
Reputation: 7212
I realize that this does not answer your question directly (I could not replicate the error), but you could try using Vundle to manage your Vim plugins. It serves a very similar purpose as pathogen, but with one important difference: it's entirely declarative.
If you used Vundle, installing Tabular would require you only to put this line into your .vimrc:
Bundle 'Tabular'
and then issue :BundleInstall
command and that's it.
It also supports downloading the plugins from GitHub, so alternatively you could use:
Bundle 'godlygeek/tabular'
I have switched from pathogen to Vundle a while ago and haven't looked back.
Upvotes: 0