lib/vmail.vim in vmail-2.4.6 vs lib/vmail.vim in vmail-2.4.7
- old
+ new
@@ -720,20 +720,10 @@
call s:system_with_error_handling(command)
echom 'opened '.href
endif
endfunc
-" linenum < 5, turn off line wrapping
-func! s:toggle_textwidth()
- if line('.') > 4 && &textwidth == 0
- setlocal textwidth=72
- elseif line('.') <= 4 && &textwidth != 0
- setlocal textwidth=0
- endif
- "echo &textwidth
-endfunc
-
" --------------------------------------------------------------------------------
" HELP
func! s:show_help()
let command = s:browser_command . ' ' . shellescape('http://danielchoi.com/software/vmail.html')
call s:system_with_error_handling(command)
@@ -835,11 +825,9 @@
endfunc
func! s:compose_window_mappings()
noremap <silent> <buffer> <leader>q :call <SID>close_and_focus_list_window()<cr>
setlocal ai
- " setlocal textwidth=72
- autocmd CursorMoved <buffer> call <SID>toggle_textwidth()
command! -bar -nargs=1 -complete=file VMAttach call s:attach_file(<f-args>)
endfunc
func! s:global_mappings()
" NOTE send_message is a global mapping, so user can load a saved