On Mon, 2012-09-10 at 06:35 -0500, sc wrote:
>
> in the Who Cares!?! department we have this: Bee might conceivably be
> interested in a slightly fancier calendar, one with today's date
> "circled", with the time of day under it, thrown into insertmode, all
> by just pressing shift-F7
>
> of course it uses python -- not a python enabled vim, but python needs
> to be available
>
> put the following in your vimrc:
>
> nnoremap <silent> <S-F7> :call Acdmo()<CR>
> inoremap <silent> <S-F7> <ESC>:call Acdmo()<CR>
>
> function! Acdmo()
> read! ~/py/currmo 38
> let im = strftime("%H:%M")
> call append(line("."), "")
> call append(line("."), im)
> call append(line("."), "")
> normal 3j
> startinsert
> endfunction
>
> and put
>
https://github.com/toothpik/toothpik-s-.vimrc/blob/master/py/currmo
>
> in your ~/py path
>
> it makes a nice blog header IMHO
>
> sc
>
:r !gcal
gives
September 2012
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9<10>11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Monday, September 10, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment