in the name of zero

February 14, 2006

valentine post. and vim

valentines. what can i say. same as last year my friends. it\’s that time of the year again. the lucky ones get to go home late happy. some other lucky ones get laid. then, there’s the rest of us.

religious studies was boring as usual today. ended up just staring at iris and caroline. i skipped cs class after rs. didn’t really feel like spending another one and a half hour at school. i went instead over at zekkon’s (my favorite internet cafe) to play warcraft dota allstars. went home around 12:30, had cornedbeef for lunch. around 1, i started reading some portions of app-editors/vim\’s help.txt. stopped around 5 because goku’s fight with freeza is soo cool at dragon ball z (he’s also close to becoming a super saiyan) and of course, great teacher onizuka wouldn’t miss it for the world.

globe’s unlimited text is screwy today of all days! darn it. and so far, only one girl texted to greet, ms bernicel e. i wonder how she’s doing right now at this time or writing. lynlyn on the other hand seemed content on playing gunbound with jef so i’ll leave her alone till her excitement subsides (highly unlikely). my mom and dad have no plans whatsoever for tonight. my brother is the only family member making the most out of today. good luck to him. i guess he’ll get married sooner than i ever could.

i don’t know what to write next so let me redirect you to an entry i wrote one valentines ago.

girls suck.

moving on…

these are now mainstays in my vimrc. simple and crude. but it\’s the start. function keys F5-F12 make vim blogging worthwhile.

" most common html tags i'm using
vmap <F5> di<blockquote></blockquote><ESC>F>p
vmap <F6> di<pre class="block"></pre><ESC>F>p
vmap <F7> di<a href="" target="_blank"></a><CR><ESC>k$F>pj<HOME>i<BACKSPACE>
vmap <F8> di<a href="" onmouseover="this.T_WIDTH=200; this.T_TITLE='--title--';
        \ return escape('--tip--')"></a><CR><ESC>k$F>pj<HOME>i<BACKSPACE>
	
" load template, post, edit latest, republish latest
map <F9> :0r /home/steph/docs/blogplate<CR>:set filetype=html<CR>
map <F10> :w !/home/steph/bin/mtsend.py -N<cr>
map <F11> :1,$ !/home/steph/bin/mtsend.py -q -G -<CR>:set filetype=html<CR>
map <F12> :w !/home/steph/bin/mtsend.py -E -<CR>

so now, i simply load up app-editors/vim to type my entry normally. and for beautification purposes, i have F5-F8 to help me. they work in visual mode. so all i need to do is to select a code block and press whatever function key that encloses that same block with the appropriate html tag. after the typing is done, i’d press F9 to load the template and edit a few template tags. lastly, i press F10 to post it.

happy valentines to each and everyone.

3 Comments »

The URI to TrackBack this entry is: http://gnurbs.blogsome.com/2006/02/14/valentine-post-and-vim/trackback/

  1. happy valentines day!!!! Hope to see you happy!!:-)

    Comment by ewan — February 17, 2006 @ 10:19 am

  2. happy, happy valentines day!!!! stay cool always!!!

    Comment by pearl lehs — February 17, 2006 @ 10:22 am

  3. happy valentines to you too! thanks for greeting me! (i hope it’s you i’m talking to, janelyn) :D

    Comment by sleepy jenkins — February 19, 2006 @ 4:29 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


Get free blog up and running in minutes with Blogsome | Theme designs available here