File: README.Debian

package info (click to toggle)
vim-scripts 6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,804 kB
  • ctags: 1,669
  • sloc: perl: 99; makefile: 27
file content (34 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

  If you just link these scripts instead of copying them, they will be
upgraded automatically. That's a good idea.

  If you, as system administrator, want to make those scripts available
to everyone, you should not make those links in the $VIMRUNTIME
directory for two reasons: On installing a new version of vim, a new
$VIMRUNTIME directory is used - the old symlinks are ignored; on
removing the old version, the symlinks might be removed, leaving no
trace behind.

  You can, however, put them into /etc/vim which is included in
option 'runtimepath' on Debian systems. For example:

  cd /etc/vim
  mkdir ftplugin
  cd ftplugin
  ln -s /usr/share/vim-scripts/ftplugin/xml.vim

will make the xml.vim filetype plugin available to every user.

  You can also have all scripts available by all users adding
/usr/share/vim-scripts to the 'runtimepath' vim option. Just add the
following line to your /etc/vim/vimrc.local [1]:
  set runtimepath+=/usr/share/vim-scripts

  Also you may want to have a look at the scripts which hide in Vim's
macro directory, which is found at /usr/share/vim/vim63/macros in
Debian. Especially the matchit.vim script is nice.

[1] you can create it if you don't have one, it will be sourced by
    /etc/vim/vimrc and changes on it will be preserved across vim
    package upgrades