Where is my vim installed?
If you installed through
apt the following sequence should get you to the Vim installation.
From inside Vim,
You could look in here and you would discover the Vim files, but if you wanted a more programmatic, portable approach, you could then use
dpkg -S, -- search for file owner:
this tells you which
.deb package/s are responsible for the path
$ dpkg -S /usr/share/vim/vim74
vim-tiny, vim-runtime, vim-common: /usr/share/vim/vim7
These are the packages, so you can use
dpkg --list-files to tell you where all the files belonging to the packages are. For example, if you run
dpkg --list-files vim-runtime
you'll get a dump of file names, which will tell you where the bulk of the vim installation is.
You'll see that on Debian and Ubuntu, most of Vim's files are in
1folder for architecture independent files as per the Filesystem Hierarchy Standard.