vmail 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +7 -9
- data/lib/vmail.vim +12 -1
- data/lib/vmail/version.rb +1 -1
- data/website/vmail-template.html +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -228,17 +228,15 @@ You're responsible for filling in the `to:` and the `subject:` fields.
|
|
228
228
|
You can add a `cc:` and `bcc:` field if you want.
|
229
229
|
|
230
230
|
|
231
|
-
When you fill in the recipient addresses, you can use Vim autocompletion
|
232
|
-
generated a `vmail-contacts.txt` file. Start typing a name or
|
233
|
-
then press `C-x C-u` to invoke autocompletion.
|
234
|
-
|
235
|
-
|
236
|
-
creating a blank line in the middle of the email headers.
|
231
|
+
When you fill in the recipient addresses, you can use Vim autocompletion
|
232
|
+
if you generated a `vmail-contacts.txt` file. Start typing a name or
|
233
|
+
email address, then press `C-x C-u` to invoke autocompletion. Select a
|
234
|
+
matching email address with `C-n`, `C-p`, or `C-u` and then press SPACE
|
235
|
+
or any other character (such as a `,`) to continue typing.
|
237
236
|
|
238
237
|
Make sure your email addresses are separated by commas and that they all
|
239
|
-
ultimately appear on the **same, unbroken line** for each field.
|
240
|
-
|
241
|
-
future enhancement), you'll have to rejoin the lines if breaks get inserted.
|
238
|
+
ultimately appear on the **same, unbroken line** for each field. Rejoin
|
239
|
+
the lines if breaks get inserted.
|
242
240
|
|
243
241
|
After you fill in the headers, write your message. Make sure there is a
|
244
242
|
blank line between the headers and the body of your message.
|
data/lib/vmail.vim
CHANGED
@@ -697,6 +697,16 @@ func! s:open_href(all) range
|
|
697
697
|
endif
|
698
698
|
endfunc
|
699
699
|
|
700
|
+
" linenum < 5, turn off line wrapping
|
701
|
+
func! s:toggle_textwidth()
|
702
|
+
if line('.') > 4 && &textwidth == 0
|
703
|
+
setlocal textwidth=72
|
704
|
+
elseif line('.') <= 4 && &textwidth != 0
|
705
|
+
setlocal textwidth=0
|
706
|
+
endif
|
707
|
+
"echo &textwidth
|
708
|
+
endfunc
|
709
|
+
|
700
710
|
" --------------------------------------------------------------------------------
|
701
711
|
" HELP
|
702
712
|
func! s:show_help()
|
@@ -781,7 +791,8 @@ func! s:compose_window_mappings()
|
|
781
791
|
noremap <silent> <buffer> <leader>q :call <SID>cancel_compose()<cr>
|
782
792
|
nmap <silent> <buffer> q <leader>q
|
783
793
|
setlocal ai
|
784
|
-
setlocal textwidth=72
|
794
|
+
" setlocal textwidth=72
|
795
|
+
autocmd CursorMoved <buffer> call <SID>toggle_textwidth()
|
785
796
|
endfunc
|
786
797
|
|
787
798
|
func! s:global_mappings()
|
data/lib/vmail/version.rb
CHANGED
data/website/vmail-template.html
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
<li><a href="https://github.com/danchoi/vmail/issues">issue tracker</a></li>
|
39
39
|
<li><a href="https://github.com/danchoi/vmail/commits/master">commit history</a></li>
|
40
40
|
<li><a href="https://github.com/danchoi/vmail/wiki">wiki</a></li>
|
41
|
-
<li><a href="http://twitter.com/#!/search/vmail%
|
41
|
+
<li><a href="http://twitter.com/#!/search/vmail%20gmail">tweets about</a></li>
|
42
42
|
</ul>
|
43
43
|
<h4>share this</h4>
|
44
44
|
|