From 80d6d3db4e83347e833251c3e0c9b6cd40550976 Mon Sep 17 00:00:00 2001 From: O01eg Date: Wed, 7 Oct 2015 23:38:56 +0300 Subject: app-vim/vim-racer: Add vim plugin for racer. --- app-vim/vim-racer/metadata.xml | 12 ++++++++++++ app-vim/vim-racer/vim-racer-9999.ebuild | 29 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 app-vim/vim-racer/metadata.xml create mode 100644 app-vim/vim-racer/vim-racer-9999.ebuild (limited to 'app-vim') diff --git a/app-vim/vim-racer/metadata.xml b/app-vim/vim-racer/metadata.xml new file mode 100644 index 0000000..6776b6e --- /dev/null +++ b/app-vim/vim-racer/metadata.xml @@ -0,0 +1,12 @@ + + + +vim + + o01eg@yandex.ru + O01eg + + + Vim plugin for racer - RUST completion utility. + + diff --git a/app-vim/vim-racer/vim-racer-9999.ebuild b/app-vim/vim-racer/vim-racer-9999.ebuild new file mode 100644 index 0000000..3d39cc7 --- /dev/null +++ b/app-vim/vim-racer/vim-racer-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit vim-plugin git-r3 + +DESCRIPTION="vim plugin: racer support" +HOMEPAGE="https://github.com/racer-rust/vim-racer" +LICENSE="MIT" +KEYWORDS="" +IUSE="" +EGIT_REPO_URI="https://github.com/racer-rust/vim-racer" +RDEPEND="dev-util/racer" + +src_prepare() { + sed -i 's|\(g:racer_cmd = \).*|\1"/usr/bin/racer"|' plugin/racer.vim +} + +pkg_postinst() { + vim-plugin_pkg_postinst + + elog "For vim you can use 'let \$RUST_SRC_PATH=\"/rust/src/\"'" + elog "if you don't want to use environment variable" + elog "You also can use \"set hidden\" or else your buffer will be" + elog "unloaded on every goto-definition" +} + -- cgit v1.2.3-65-gdbad