diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2012-02-01 10:31:01 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2012-02-01 10:31:01 +0100 |
commit | 1200d71b87823d0666f97f923774068ee151ecbf (patch) | |
tree | f4aadb48002d66400737da9da0b946c5210cf65a | |
download | vim4projects-1200d71b87823d0666f97f923774068ee151ecbf.tar.gz vim4projects-1200d71b87823d0666f97f923774068ee151ecbf.tar.xz vim4projects-1200d71b87823d0666f97f923774068ee151ecbf.zip |
initial commit
contains:
- local_vimrc
- genshi-contrib (from genshi svn, contrib/vim)
- Python-mode
- taglist-plus
- modegreen
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .gitmodules | 13 | ||||
-rw-r--r-- | README.txt | 42 | ||||
-rwxr-xr-x | vim-init.sh | 23 |
4 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b9d9e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/genshi-contrib +/local-vimrc diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..def4476 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,13 @@ +# integrate pylint, rope, pydoc, pyflakes +# + extra highlighting, whitespace removal ... +[submodule "git-python-mode"] + path = git-python-mode + url = git://github.com/klen/python-mode.git +# taglist plugin incl. support for JavaScript +[submodule "git-taglist-plus"] + path = git-taglist-plus + url = git://github.com/klen/vim-taglist-plus.git +# to be integrated with tests +[submodule "git-makegreen"] + path = git-makegreen + url = git://github.com/reinh/vim-makegreen.git diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..f9fcd1b --- /dev/null +++ b/README.txt @@ -0,0 +1,42 @@ +Script ./vim-init.sh provides a way to get preferred vim plugins +for development. All will be prepared in ./vim-bundle dir. +In order to use them conveniently from here, install pathogen [1] +as per instructions, but add this to your ~/.vimrc: + + filetype off + + call pathogen#infect('~/path/to/this/repo') + call pathogen#helptags() + + filetype plugin indent on + syntax on + +Alternatively, symlink ./vim-bundle to ~/.vim/bundle (or copy +the contents here), but you will miss automatical updates and +additions of new plugins upon pulling. Call pathogen without +the parameter then. + + +After restarting vim, everything should work. To check this, +":PymodeVersion'" should output something like: + + Current python-mode version: 0.5.5" + +It is important that this test is passing! + + +Please note that some of the plugins have dependencies; +non-exhaustive enumeration (refer to per-plugin README files): + +- taglist-plus + - exuberant ctags (?), Fedora: ctags-etags + - jsctags + node.js: see respective README + + +For configuration of the plugins, you may be interested in +following sources (mostly the main pages at github.com): + +- python-mode: https://github.com/klen/python-mode + + +[1] https://github.com/tpope/vim-pathogen diff --git a/vim-init.sh b/vim-init.sh new file mode 100755 index 0000000..92cd11e --- /dev/null +++ b/vim-init.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# Read vim.txt first. + +WGET="wget -nv" + +echo +echo "[initializing/updating local git submodules]" +git submodule update --init + +LOCAL_VIMRC_DIR="local-vimrc" +LOCAL_VIMRC_URL="http://lh-vim.googlecode.com/svn/misc/trunk/plugin/local_vimrc.vim" +echo +echo "[getting $LOCAL_VIMRC_DIR]" +# "plugin" directory has to be added (downloading recursively +# the whole original "plugin" path for one file is impractical) +$WGET -P "$LOCAL_VIMRC_DIR/plugin" -nc "$LOCAL_VIMRC_URL" + +# TODO: is there a less complicated way to get these files? +GENSHI_CONTRIB_DIR="genshi-contrib" +GENSHI_CONTRIB_URL="http://svn.edgewall.org/repos/genshi/contrib/vim/" +echo +echo "[getting $GENSHI_CONTRIB_DIR]" +$WGET -P "$GENSHI_CONTRIB_DIR" -nc -e robots=off -r -l3 -np -nH --cut-dirs=4 -R index.html "$GENSHI_CONTRIB_URL" |