Permalink
Browse files

Make the destination more flexible; so "cd editor && make vim-install…

… VIM_DIR=/usr/share/vim/vimfiles" for example will work correct; so the VIM_DIR option is possible

git-svn-id: https://svn.parrot.org/parrot/trunk@48027 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 2127a9d commit b777e9bc97997fcbf36e3f99530db3e650feb346 gerd committed Jul 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −1 config/gen/makefiles/editor.in
  2. +0 −1 editor/filetype_parrot.vim
@@ -1,4 +1,4 @@
-# Copyright (C) 2005-2009, Parrot Foundation.
+# Copyright (C) 2005-2010, Parrot Foundation.
# $Id$
#IF(win32):VIM_DIR = $(USERPROFILE)/vimfiles
@@ -49,6 +49,7 @@ vim-install: pir.vim skeleton.pir
$(CP) pmc.vim "$(VIM_SYN_DIR)"
$(MKPATH) "$(VIM_FT_DIR)"
$(CP) filetype_parrot.vim "$(VIM_FT_DIR)/parrot.vim"
+ echo "au BufNewFile *.pir 0r $(VIM_DIR)/skeleton.pir" >> "$(VIM_FT_DIR)/parrot.vim"
$(MKPATH) "$(VIM_IN_DIR)"
$(CP) indent_pir.vim "$(VIM_IN_DIR)/pir.vim"
@@ -1,4 +1,3 @@
au BufNewFile,BufRead *.pmc set ft=pmc cindent
au BufNewFile,BufRead *.pasm set ft=pasm ai sw=4
au BufNewFile,BufRead *.pir set ft=pir ai sw=4
-au BufNewFile *.pir 0r ~/.vim/skeleton.pir

0 comments on commit b777e9b

Please sign in to comment.