Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b777e9bc97997fcbf36e3f99530db3e650feb346 1 parent 2127a9d
gerd authored
Showing with 2 additions and 2 deletions.
  1. +2 −1  config/gen/makefiles/editor.in
  2. +0 −1  editor/filetype_parrot.vim
View
3  config/gen/makefiles/editor.in
@@ -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"
View
1  editor/filetype_parrot.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
Please sign in to comment.
Something went wrong with that request. Please try again.