diff options
-rw-r--r-- | muttrc | 9 | ||||
-rw-r--r-- | vimrc | 9 |
2 files changed, 11 insertions, 7 deletions
@@ -31,8 +31,9 @@ set send_charset = "us-ascii:utf-8" | |||
31 | set header = no | 31 | set header = no |
32 | set pager_stop | 32 | set pager_stop |
33 | set sleep_time=0 # When changing folder | 33 | set sleep_time=0 # When changing folder |
34 | set timeout=10 | 34 | set timeout = 10 |
35 | set quit=ask-no | 35 | set quit = ask-no |
36 | set 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 | |||
49 | bind pager \ck previous-entry | 50 | bind pager \ck previous-entry |
50 | bind index g noop | 51 | bind index g noop |
51 | bind index gg first-entry | 52 | bind index gg first-entry |
52 | bind index l select-entry | 53 | #bind index l select-entry |
54 | bind index <Return> sync-mailbox | ||
53 | bind index \cl limit | 55 | bind index \cl limit |
54 | bind index G last-entry | 56 | bind index G last-entry |
55 | bind index R group-reply | 57 | bind index R group-reply |
@@ -61,6 +63,7 @@ bind index } bottom-page | |||
61 | bind index x tag-entry | 63 | bind index x tag-entry |
62 | bind attach x view-mailcap | 64 | bind attach x view-mailcap |
63 | macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" | 65 | macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file" |
66 | macro index <Return> ":exec sync-mailbox sidebar-open\n" "Sync Mailbox" | ||
64 | 67 | ||
65 | # Sidebar | 68 | # Sidebar |
66 | mailboxes =INBOX =mbox =pay =Sent =Trash =Drafts =talk-tw =service =keep | 69 | mailboxes =INBOX =mbox =pay =Sent =Trash =Drafts =talk-tw =service =keep |
@@ -88,6 +88,7 @@ vnoremap { <ESC>`<i{<ESC>`>la}<ESC> | |||
88 | vnoremap [ <ESC>`<i[<ESC>`>la]<ESC> | 88 | vnoremap [ <ESC>`<i[<ESC>`>la]<ESC> |
89 | vnoremap ` <ESC>`<i`<ESC>`>la`<ESC> | 89 | vnoremap ` <ESC>`<i`<ESC>`>la`<ESC> |
90 | vnoremap , <ESC>`<i<<ESC>`>la><ESC> | 90 | vnoremap , <ESC>`<i<<ESC>`>la><ESC> |
91 | vnoremap <space> <ESC>`<i<space><ESC>`>la<space><ESC> | ||
91 | vnoremap 8 <ESC>`<i*<ESC>`>la*<ESC> | 92 | vnoremap 8 <ESC>`<i*<ESC>`>la*<ESC> |
92 | vnoremap z <ESC>`<i「<ESC>`>la」<ESC> | 93 | vnoremap z <ESC>`<i「<ESC>`>la」<ESC> |
93 | 94 | ||
@@ -153,10 +154,10 @@ nnoremap <leader>I :s/^[ ]*- \(\[.\] \)*//<CR> | |||
153 | nmap <leader>D dd:VimwikiMakeDiaryNote<CR>Gp:w!<CR>:Bclose<CR> | 154 | nmap <leader>D dd:VimwikiMakeDiaryNote<CR>Gp:w!<CR>:Bclose<CR> |
154 | vnoremap <leader>D d:VimwikiMakeDiaryNote<CR>Gp:w!<CR> | 155 | vnoremap <leader>D d:VimwikiMakeDiaryNote<CR>Gp:w!<CR> |
155 | let g:vimwiki_list = [{ | 156 | let 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 |
162 | augroup vimwikiPush | 163 | augroup vimwikiPush |