Last active
October 12, 2018 00:51
-
-
Save morygonzalez/208a31c7b1f6eaae9b4cfd987bb07cfe to your computer and use it in GitHub Desktop.
Nippo Opener
This file contains hidden or 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
map <Leader>np :MemoNewWithMeta 'ニッポー', '"ニッポー", "YAMAP"', 'Work'<CR> | |
function! s:yesterday_nippo() | |
let s:now = localtime() | |
let s:day = (60 * 60 * 24) | |
let s:yesterday = strftime("%Y-%m-%d", s:now - s:day) | |
let s:yesterday_path = g:memolist_path.'/'.s:yesterday.'-ニッポー.markdown' | |
exe "e" s:yesterday_path | |
endfunction | |
command! -nargs=* YesterdayNippo :call s:yesterday_nippo() | |
map <Leader>ynp :YesterdayNippo<CR> | |
function! s:today_nippo() | |
let s:today = strftime("%Y-%m-%d") | |
let s:today_path = g:memolist_path.'/'.s:today.'-ニッポー.markdown' | |
exe "e" s:today_path | |
endfunction | |
command! -nargs=* TodayNippo :call s:today_nippo() | |
map <Leader>tnp :TodayNippo<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment