I installed vim-gnome via Synaptic and I did not seem to find familiar .vim folder which is equivalent to vimfiles in windows. Following two threads helped me out:
http://stackoverflow.com/questions/7640805/vim-ubuntu-system-wide-plugin-directory
http://stackoverflow.com/questions/12962233/vim-7-3-on-ubuntu-12-10-doesnt-have-ftplugin-directory-anywhere
http://vim.wikia.com/wiki/Open_vimrc_file
Specially the second one was really useful:
http://stackoverflow.com/questions/7640805/vim-ubuntu-system-wide-plugin-directory
http://stackoverflow.com/questions/12962233/vim-7-3-on-ubuntu-12-10-doesnt-have-ftplugin-directory-anywhere
http://vim.wikia.com/wiki/Open_vimrc_file
Specially the second one was really useful:
Just to be clear: upon install, Vim doesn't do anything to your home directory. The
~/.vim
directoryand any subdirectory are to be created by the user: it is where you put your config so you are in charge.
endedit
You must create those directories yourself, no matter what OS you are using. On UNIX-like systems (Linux, Mac OS X…) all your stuff is supposed to go into
~/.vim
:$ cd
$ mkdir .vim
$ cd .vim
Some plugins may need to be placed into specific subdirectories:
~/.vim/autoload
~/.vim/plugin
etc.
You can:
- create those directories just like you created
~/.vim
and place all the files manually $ unzip
the plugins right there in~/.vim
, the necessary directories are created for you- use some plugin manager like Pathogen or VAM or Vundle and/or a VCS…
I'd advise you to start slow. Just install everything manually: it will help you getting more comfortable with the whole thing.
Anyway, since you have already installed a bunch of (useless IMO, except rails) plugins you probably already know all that.
Vim already has the necessary ftplugins, you only need to tell Vim to "activate" them by default. Add these two lines to your
~/.vimrc
(create that file if you didn't already):filetype plugin indent on
syntax on
No comments:
Post a Comment