vmail 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 if you
232
- generated a `vmail-contacts.txt` file. Start typing a name or email address,
233
- then press `C-x C-u` to invoke autocompletion.
234
-
235
- Tip: Use `C-y` instead of ENTER to select a match. This will prevent you from
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. Vim will
240
- probably break long lines automatically as you type them, so for now (pending a
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.
@@ -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()
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
@@ -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%20vim">tweets about</a></li>
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
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 3
9
- version: 0.8.3
8
+ - 4
9
+ version: 0.8.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi