Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Vimball has been added. * New snippets.
- Loading branch information
Hallison Batista
committed
Dec 4, 2009
1 parent
116a95e
commit c26f0a0
Showing
6 changed files
with
82 additions
and
85 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.*.sw[p-z] | ||
*.gz | ||
*.tmp | ||
*.vba | ||
*.zip | ||
|
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
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,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 | ||
|
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 |
---|---|---|
@@ -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} |
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 @@ | ||
syntax/rdoc.vim | ||
snippets/rdoc.snippets |