monochromatic

monochromatic blog: http://blog.z3bra.org
git clone git://z3bra.org/monochromatic
Log | Files | Refs

commit 2684a7305835d91a5db1fbab59fca106b5db2b1a
parent 83e2b9865f32ed500746548ead47808b586c6299
Author: z3bra <willy@mailoo.org>
Date:   Mon,  3 Feb 2014 11:43:46 +0100

Removed useless vim file

Diffstat:
tools/blog.vim | 36------------------------------------
1 file changed, 0 insertions(+), 36 deletions(-)

diff --git a/tools/blog.vim b/tools/blog.vim @@ -1,36 +0,0 @@ -" -" blog.vim -" -" -" collection of functions, binding, etc... to automate blog editing and make it -" easier. -" - -" insert current date preceded by &mdash at the end of the current line -fu! Date() - norm mz - exe append(line("."), "&mdash; ".strftime("%d %B, %Y")) - norm 'zJ -endf - -fu! EscapeHTML() - silent! s/</\&lt;/g - silent! s/>/\&gt;/g - silent! s/"/\&quot;/g -endf - -fu! CodeHTML(newft) - let oldft = &ft " remember current filetype - let ft = a:newft " filetype to be used - '<,'>TOhtml " convert the selection to HTML - /^<pre/+1,/^<\/pre>/-1d " get the code in between <pre> tags - bd! " remove the HTML temporary buffer - norm gvp " copy that in place of the old text - let ft = oldft " recall the saved filetype -endf - -" love that... -ab -- &mdash; -ab </ </<C-X><C-o> - -nmap <leader>d :call Date()<CR>