[sr-dev] git:master: utils/misc/vim: added Makefile to install vim scripts
Daniel-Constantin Mierla
miconda at gmail.com
Sat Oct 6 09:57:36 CEST 2012
Module: sip-router
Branch: master
Commit: 1371eeab4ca3d3f666e52bb42d904059ce77c4ac
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1371eeab4ca3d3f666e52bb42d904059ce77c4ac
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Sat Oct 6 09:56:06 2012 +0200
utils/misc/vim: added Makefile to install vim scripts
- 'make install' copies the files to home .vim folder
- updated README to reflect the new command
---
utils/misc/vim/Makefile | 7 +++++++
utils/misc/vim/README | 14 ++++++++++----
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/utils/misc/vim/Makefile b/utils/misc/vim/Makefile
new file mode 100644
index 0000000..c223e8d
--- /dev/null
+++ b/utils/misc/vim/Makefile
@@ -0,0 +1,7 @@
+all:
+
+install:
+ mkdir -p ~/.vim/ftdetect
+ mkdir -p ~/.vim/syntax
+ cp ftdetect/ser.vim ~/.vim/ftdetect/
+ cp syntax/ser.vim ~/.vim/syntax/
diff --git a/utils/misc/vim/README b/utils/misc/vim/README
index 5217f8c..a7d2694 100644
--- a/utils/misc/vim/README
+++ b/utils/misc/vim/README
@@ -1,12 +1,18 @@
+Overview
+--------
+
Vim scripts to auto-detect SER and Kamailio configuration files and
enable syntax highlighting for them.
-Install:
+Install
+-------
-- copy ftdetect/ser.vim to ~/.vim/ftdetect/ser.vim
-- copy syntax/ser.vim to ~/.vim/syntax/ser.vim
+Run 'make install' in this folder, or:
+ - copy ftdetect/ser.vim to ~/.vim/ftdetect/ser.vim
+ - copy syntax/ser.vim to ~/.vim/syntax/ser.vim
-Usage:
+Usage
+-----
- autodetection is based on .cfg extension and match of #!SER,
#!KAMAILIO (and other variants), modparam or route keywords in
More information about the sr-dev
mailing list