Browse files

Features for version 1.0.0

* Syntax file renamed to `markdown.vim`.
* Added snippets.
* Added Vimball package support.
* Versioning.
  • Loading branch information...
1 parent 5693dc9 commit ba7cc3db03452f7bb6975b748887fe7c776550aa Hallison Batista committed Dec 4, 2009
Showing with 164 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +58 −0 README.mkd
  3. +55 −0 pool
  4. +43 −0 snippets/markdown.snippets
  5. 0 mkd.vim → syntax/markdown.vim
  6. +2 −0 vbafiles
View
6 .gitignore
@@ -0,0 +1,6 @@
+.*.sw[p-z]
+*.gz
+*.tmp
+*.vba
+*.zip
+
View
58 README.mkd
@@ -0,0 +1,58 @@
+Vim - Markdown
+==============
+
+Description
+-----------
+
+[Markdown][] syntax support for [Vim][] Editor.
+
+Install
+-------
+
+Download the [gzipball][script homepage] from Vim [script homepage][] and
+open the package using [Vim][] and use the command `:source %`. Done! All
+files will be extracted in your [Vim][] home directory.
+
+If you checkout from repository, install using the following commands:
+
+ bash pool install
+
+This instruction will be create a Vimball file and install.
+
+Updates your <tt>.vimrc<tt> file with:
+
+ autocmd BufNewFile,BufRead *.{md,mld,mark,markdown} set filetype=markdown
+
+This will make the syntax works.
+
+Information
+-----------
+
+The original [Mardown][] [Vim][] syntax was created by [Ben Williams][].
+
+You maybe contributes to source. So, send a feedback in [issue tracker][].
+
+Vim-Markdown is hosted on following servers:
+
+* [Github (original)](http://github.com/plasticboy/vim-markdown/)
+* [Github (fork)](http://github.com/hallison/vim-markdown)
+* [Codaset](http://codaset.com/hallison/vim-markdown)
+
+Visit the [script homepage][] for more information.
+
+Copyright
+---------
+
+Copyright (c) 2009 Ben Williams <benw@plasticboy.com>
+ Hallison Batista <email@hallisonbatista.com>
+
+[markdown]: http://daringfireball.net/projects/markdown/
+ "Markdown syntax project"
+[script homepage]: http://www.vim.org/scripts/script.php?script_id=1242
+ "Markdown Vim Script homepage"
+[vim]: http://www.vim.org
+ "Vim Editor"
+[issue tracker]: http://github.com/hallison/vim-markdown/issues
+ "Vim-Markdown Github Issues"
+[ben williams]: http://plasticboy.com/markdown-vim-mode/ "Markdown Vim Mode"
+
View
55 pool
@@ -0,0 +1,55 @@
+declare pkg_name=markdown
+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 "vbafiles" +":%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"
+ markdown -f toc -T -o README.html README.mkd &> /dev/null
+ printf "done\n"
+
+ return 0
+}
+
+test $# -eq 0 && {
+ echo "Arguments required"
+ exit 1
+}
+
+${@}
+
+# vim: filetype=sh
+
View
43 snippets/markdown.snippets
@@ -0,0 +1,43 @@
+# [link][]
+snippet []
+ [${1:link_id}][]${2}
+# [link][id]
+snippet [[
+ [${1:link}][${2:id}]${3}
+# [link](url)
+snippet [(
+ [${1:link}(http://${2:url})${3}
+# [link](email)
+snippet [@
+ [${1:link}(mailto:${2:email})${3}
+# [link](url "title")
+snippet [("
+ [${1:link}](${2:url} "${3:title}")${4}
+# [id]: url "title"
+snippet [:
+ [${1:id}]: http://${2:url} "${3:title}"
+# [id]: email "title"
+snippet [:@
+ [${1:id}]: mailto:${2:url} "${3:title}"
+# ![alt][id]
+snippet ![
+ ![${1:alt}][${2:id}]${3}
+# ![alt](url)
+snippet !(
+ ![${1:alt}](${2:url})${3}
+# ![alt](url "title")
+snippet !("
+ ![${1:alt}](${2:url} "${3:title}")${4}
+# *emphasis* or _emphasis_
+snippet *
+ *${1}*${2}
+snippet _
+ _${1}_${2}
+# **strong** or __strong__
+snippet **
+ **${1}**${2}
+snippet __
+ __${1}__${2}
+# `code`
+snippet `
+ `${1}`${2}
View
0 mkd.vim → syntax/markdown.vim
File renamed without changes.
View
2 vbafiles
@@ -0,0 +1,2 @@
+syntax/markdown.vim
+snippets/markdown.snippets

0 comments on commit ba7cc3d

Please sign in to comment.