Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30c068c
commit 23efff5
Showing
7 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
|
||
# Plant rope vim's plugin | ||
# This is a script to install or update 'ropevim' | ||
# Copyright Alexander Artemenko, 2008 | ||
# Contact me at svetlyak.40wt at gmail com | ||
|
||
function create_dirs | ||
{ | ||
mkdir -p src | ||
mkdir -p pylibs | ||
} | ||
|
||
function check_vim | ||
{ | ||
if vim --version | grep '\-python' > /dev/null | ||
then | ||
echo You vim does not support python plugins. | ||
echo Please, install vim with python support. | ||
echo On debian or ubuntu you can do this: | ||
echo " sudo apt-get install vim-python" | ||
exit 1 | ||
fi | ||
} | ||
|
||
function get_or_update | ||
{ | ||
if [ -e $1 ] | ||
then | ||
cd $1 | ||
echo Pulling updates from $2 | ||
hg pull > /dev/null | ||
cd .. | ||
else | ||
echo Cloning $2 | ||
hg clone $2 $1 > /dev/null | ||
fi | ||
} | ||
|
||
function pull_sources | ||
{ | ||
cd src | ||
get_or_update rope http://bitbucket.org/agr/rope | ||
get_or_update ropevim http://bitbucket.org/agr/ropevim | ||
get_or_update ropemode http://bitbucket.org/agr/ropemode | ||
|
||
cd ../pylibs | ||
ln -f -s ../src/rope/rope | ||
ln -f -s ../src/ropemode/ropemode | ||
ln -f -s ../src/ropevim/ropevim.py | ||
cd .. | ||
} | ||
|
||
function gen_vim_config | ||
{ | ||
echo "let \$PYTHONPATH .= \":`pwd`/pylibs\"" > rope.vim | ||
echo "source `pwd`/src/ropevim/ropevim.vim" >> rope.vim | ||
echo "Now, just add \"source `pwd`/rope.vim\" to your .vimrc" | ||
} | ||
|
||
#check_vim | ||
create_dirs | ||
pull_sources | ||
gen_vim_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src/rope/rope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src/ropemode/ropemode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src/ropevim/ropevim.py |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
let $PYTHONPATH .= ":/Users/grb/.vim/ropevim/pylibs" | ||
source /Users/grb/.vim/ropevim/src/ropevim/ropevim.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters