Browse Source

Two documentation fixes:

1. Removed trailing slash at end of rtp (runtimepath) parameter example.
The code behaves such that there should not be a trailing slash; can
very this easily by do a ":set runtimepath?"

2. Added a node that filetype plugins (which vim *assumes* will be
located in $(runtimepath)/ftplugin/[filetype]*) should have the
"ftplugin/[filetype]" part of the path excluded from the rtp parameter.

For example, the vim-instant-markdown plugin
(https://github.com/suan/vim-instant-markdown) will only work properly
if rtp is set to "after", rather than "after/ftplugin/markdown".
pull/588/head
James Hogan 11 years ago
parent
commit
087edd7354
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      README.md
  2. +2
    -1
      doc/vundle.txt

+ 2
- 1
README.md View File

@ -69,7 +69,8 @@
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" For filetype-based plugins, EXCLUDE the "ftplugin/[filetype]" part of the path.
Plugin 'rstacruz/sparkup', {'rtp': 'vim'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}


+ 2
- 1
doc/vundle.txt View File

@ -93,7 +93,8 @@ more information.
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" For filetype-based plugins, EXCLUDE the "ftplugin/[filetype]" part of the path.
Plugin 'rstacruz/sparkup', {'rtp': 'vim'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}


Loading…
Cancel
Save