aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-04-02 00:49:25 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-04-02 00:49:25 +0800
commitcd62ba7b9ccffa796b57df811df9f235bb91d94f (patch)
tree23e3f07582f33275b2c25a6a0f831125160786f1
parent3cf0d4e22a5cef26bf3513c318b757d1a0a35dad (diff)
update
-rw-r--r--muttrc9
-rw-r--r--vimrc9
2 files changed, 11 insertions, 7 deletions
diff --git a/muttrc b/muttrc
index 2f902d8..4aa56d2 100644
--- a/muttrc
+++ b/muttrc
@@ -31,8 +31,9 @@ set send_charset = "us-ascii:utf-8"
31set header = no 31set header = no
32set pager_stop 32set pager_stop
33set sleep_time=0 # When changing folder 33set sleep_time=0 # When changing folder
34set timeout=10 34set timeout = 10
35set quit=ask-no 35set quit = ask-no
36set sort = threads
36 37
37# Vim-style key binding, \c means Ctrl 38# Vim-style key binding, \c means Ctrl
38# ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A 39# ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A
@@ -49,7 +50,8 @@ bind pager \cj next-entry
49bind pager \ck previous-entry 50bind pager \ck previous-entry
50bind index g noop 51bind index g noop
51bind index gg first-entry 52bind index gg first-entry
52bind index l select-entry 53#bind index l select-entry
54bind index <Return> sync-mailbox
53bind index \cl limit 55bind index \cl limit
54bind index G last-entry 56bind index G last-entry
55bind index R group-reply 57bind index R group-reply
@@ -61,6 +63,7 @@ bind index } bottom-page
61bind index x tag-entry 63bind index x tag-entry
62bind attach x view-mailcap 64bind attach x view-mailcap
63macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" 65macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file"
66macro index <Return> ":exec sync-mailbox sidebar-open\n" "Sync Mailbox"
64 67
65# Sidebar 68# Sidebar
66mailboxes =INBOX =mbox =pay =Sent =Trash =Drafts =talk-tw =service =keep 69mailboxes =INBOX =mbox =pay =Sent =Trash =Drafts =talk-tw =service =keep
diff --git a/vimrc b/vimrc
index 5fd757e..fee8438 100644
--- a/vimrc
+++ b/vimrc
@@ -88,6 +88,7 @@ vnoremap { <ESC>`<i{<ESC>`>la}<ESC>
88vnoremap [ <ESC>`<i[<ESC>`>la]<ESC> 88vnoremap [ <ESC>`<i[<ESC>`>la]<ESC>
89vnoremap ` <ESC>`<i`<ESC>`>la`<ESC> 89vnoremap ` <ESC>`<i`<ESC>`>la`<ESC>
90vnoremap , <ESC>`<i<<ESC>`>la><ESC> 90vnoremap , <ESC>`<i<<ESC>`>la><ESC>
91vnoremap <space> <ESC>`<i<space><ESC>`>la<space><ESC>
91vnoremap 8 <ESC>`<i*<ESC>`>la*<ESC> 92vnoremap 8 <ESC>`<i*<ESC>`>la*<ESC>
92vnoremap z <ESC>`<i「<ESC>`>la」<ESC> 93vnoremap z <ESC>`<i「<ESC>`>la」<ESC>
93 94
@@ -153,10 +154,10 @@ nnoremap <leader>I :s/^[ ]*- \(\[.\] \)*//<CR>
153nmap <leader>D dd:VimwikiMakeDiaryNote<CR>Gp:w!<CR>:Bclose<CR> 154nmap <leader>D dd:VimwikiMakeDiaryNote<CR>Gp:w!<CR>:Bclose<CR>
154vnoremap <leader>D d:VimwikiMakeDiaryNote<CR>Gp:w!<CR> 155vnoremap <leader>D d:VimwikiMakeDiaryNote<CR>Gp:w!<CR>
155let g:vimwiki_list = [{ 156let g:vimwiki_list = [{
156 'path': '~/vimwiki/', 157 \ 'path': '~/vimwiki/',
157 'syntax': 'markdown', 158 \ 'syntax': 'markdown',
158 'ext': '.md' 159 \ 'ext': '.md',
159}] 160 \ }]
160 161
161" Git push quietly whenever leaving vim with VimWiki files 162" Git push quietly whenever leaving vim with VimWiki files
162augroup vimwikiPush 163augroup vimwikiPush