Skip to content

Commit

Permalink
Improvements for version 0.1.1
Browse files Browse the repository at this point in the history
* Vimball has been added.
* New snippets.
  • Loading branch information
Hallison Batista committed Dec 4, 2009
1 parent 116a95e commit c26f0a0
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 85 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,4 +1,6 @@
.*.sw[p-z]
*.gz
*.tmp
*.vba
*.zip

26 changes: 18 additions & 8 deletions README.rdoc
@@ -1,4 +1,4 @@
= RDoc.vim
= Vim - RDoc

== Description

Expand All @@ -7,24 +7,34 @@

== Install

Download the {zipball}[http://www.vim.org/scripts/script.php?script_id=9]
from Vim script page and extract in your +.vim+ directory.
Download the {gzipball}[http://www.vim.org/scripts/script.php?script_id=2878]
from Vim script page and extract in your <tt>.vim</tt> directory.

If you doing checkout from repository, install usin the following commands:

bash does install
bash pool install

All sources will be copied to +.vim+ directory automatically.

Updates your <tt>.vimrc<tt> file with:

autocmd BufNewFile,BufRead *.{rd,rdoc} set filetype=rdoc

This will make the syntax works.

== Information

You maybe contributes to source. So, send a feedback in
{issue track}[http://github.com/hallison/rdoc.vim/issues].
{issue track}[http://github.com/hallison/vim-rdoc/issues].

Vim-RDoc is hosted on following servers:

RDoc.vim is hosted on following servers:
* {Github}[http://github.com/hallison/vim-rdoc]
* {Codaset}[http://codaset.com/hallison/vim-rdoc]

* {Github}[http://github.com/hallison/rdoc.vim]
* {Codaset}[http://codaset.com/hallison/rdoc.vim]
Visit the
{script homepage}[http://www.vim.org/scripts/script.php?script_id=2878]
for more information.

== Copyright

Expand Down
74 changes: 0 additions & 74 deletions does

This file was deleted.

54 changes: 54 additions & 0 deletions pool
@@ -0,0 +1,54 @@
declare pkg_name=rdoc
declare pkg_base=$(dirname "$0")
declare pkg_version=$(git tag | sort | tail -n 1)
declare pkg_file="${pkg_name}-${pkg_version#v}.vba"
declare prefix=".vim"

function vimball {
printf "* %-40s " "Creating vimball package"
vim "vimball" +":%MkVimball! ${pkg_file} ." +":q" &> /dev/null
printf "done\n"

return 0
}

function compress {
printf "* %-40s " "Compressing package ${pkg_file}"
gzip ${pkg_file} &> /dev/null
printf "done\n"

return 0
}

function install {
vimball
printf "* %-40s " "Intalling ${pkg_file}"
vim ${pkg_file} +":source %" +":q" &> /dev/null
printf "done\n"

return 0
}

function package {
test -f ${pkg_file} && rm ${pkg_file} && vimball
test -f ${pkg_file}.* && rm ${pkg_file}.* && compress
}

function doc {
printf "* %-40s " "Building documentation"
rdoc --main README.rdoc \
--title "RDoc.vim" README.rdoc &> /dev/null
printf "done\n"

return 0
}

test $# -eq 0 && {
echo "Arguments required"
exit 1
}

${@}

# vim: filetype=sh

9 changes: 6 additions & 3 deletions snippets/rdoc.snippets
@@ -1,6 +1,9 @@
# {link}[url]text
snippet {}
{${1:link}}[http://${2:url}] ${3}
# {name}[email] text
{${1:link}}[http://${2:url}]${3}
# {name}[email]text
snippet {@
{${1:name}}[mailto:${2:email}] ${3}
{${1:name}}[mailto:${2:email}]${3}
# {link}[local]text
snippet {l
{${1:link}}[link:${2:local}]${3}
2 changes: 2 additions & 0 deletions vimball
@@ -0,0 +1,2 @@
syntax/rdoc.vim
snippets/rdoc.snippets

0 comments on commit c26f0a0

Please sign in to comment.