Browse Source

Include details for alternative install method

mMontu 9 years ago
parent
commit
98f01c2232
1 changed files with 13 additions and 0 deletions
  1. 13 0
      README.md

+ 13 - 0
README.md

@@ -13,6 +13,19 @@ Run 'make install' in this folder, or:
   * copy ftdetect/kamailio.vim to ~/.vim/ftdetect/kamailio.vim
   * copy ftdetect/kamailio.vim to ~/.vim/ftdetect/kamailio.vim
   * copy syntax/kamailio.vim to ~/.vim/syntax/kamailio.vim
   * copy syntax/kamailio.vim to ~/.vim/syntax/kamailio.vim
 
 
+#### alternative installation: using plugin managers ####
+
+As this is a regular Vim plugin, the 'make install' isn't strictly necessary; it can be installed used any plugin manager.
+For example, for [pathogen.vim](https://github.com/tpope/vim-pathogen) you could simply copy and paste:
+
+    cd ~/.vim/bundle
+    git clone git://github.com/kamailio/vim-kamailio-syntax.git
+
+Note that using the regular approach of plugin manager may cause the autodetection to fail in some cases. For instance, when when using the [netrw plugin](http://www.vim.org/scripts/script.php?script_id=1075) to open a file in a remote machine it works fine at first; but when the file is saved the detection fails, mainly because that plugin relies on the `:filetype detect` command, which only search for the first item of the `'runtimepath'` option. Thus it is necessary to symlink or copy the file to the default location, outside the `bundle` directory:
+
+    ln -s ~/.vim/bundle/vim-kamailio-syntax/ftdetect/* ~/.vim/ftdetect/
+
+
 ### Usage ###
 ### Usage ###
 
 
 Autodetection is based on __.cfg__ extension and match of __#!KAMAILIO__,
 Autodetection is based on __.cfg__ extension and match of __#!KAMAILIO__,