vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] question on wrapwords/wrapmargin


From: lists-vile
Subject: Re: [vile] question on wrapwords/wrapmargin
Date: Sun, 17 Apr 2011 17:27:25 -0400
User-agent: Mutt/1.4.2.3i

A simple macro expander would work for most purposes, like perhaps a command
line parameter that feeds an rc file through M4 prior to processing it similar
to how some window managers work.  Then again I could keep a vilerc.m4 file
around and build my .vilerc from that.

On Sun, Apr 17, 2011 at 04:39:07PM -0400, Thomas Dickey wrote:
> On Sun, 17 Apr 2011, address@hidden wrote:
> 
> >My vilerc is at the end of this email. You'll notice that I only have 
> >wrapping
> >active when sending email or txt docs, so those submode definitions are
> >identical.  It would be nice if I could have multiple submode names 
> >following
> >the define-submode command instead of have 2 distinct but identical blocks.
> >Perhaps there is another way achieve the same thing?
> 
> Offhand, the only workaround I can think of would be uglier (to source
> a file inside the block).  I've thought of making some type of 
> meta-macros to do this, e.g., in the big chunks used for vbmode, but 
> haven't implemented that.
> 
> >
> >Wayne
> >
> >On Sun, Apr 17, 2011 at 04:16:18PM -0400, Thomas Dickey wrote:
> >>On Sun, 17 Apr 2011, address@hidden wrote:
> >>
> >>>From the help reference:
> >>>
> >>>wrapwords (ww)
> >>>         Similar to, but different from, vi's auto-wrap mode (i.e.
> >>>         "wrapmargin"). While inserting, words are moved to the next line
> >>>         if the current line gets too long. Wrapping is only attempted
> >>>         when
> >>>         a space is typed. The target maximum width of lines is changed
> >>>         with the "fillcol" setting. (B)
> >>>
> >>>
> >>>Would is be possible to add new-line to the set of characters that cause
> >>>wrapping to occur?  I find the last line of a paragraph frequency 
> >>>violates
> >>>the
> >>>fillcol value when I insert a new-line instead of a space or when I go 
> >>>back
> >>>and correct text that runs past the fillcol value.  This does not happen
> >>>when
> >>>I use the wrapmargin setting.  When using wrapmargin it seems that
> >>>wrapping is
> >>>implemented as characters are typed rather than waiting for a space
> >>>character?
> >>
> >>That sounds like a bug-report rather than just a wish-list.
> >>Can you send a copy of your .vilerc, so that I can test with the
> >>same options?
> >>
> >>thanks
> >>
> >>--
> >>Thomas E. Dickey
> >>http://invisible-island.net
> >>ftp://invisible-island.net
> >
> >~/.vilerc
> >------------------------------------------------------------------------
> >set autoindent
> >set backup-style=tilde
> >set fillcol=78
> >set ignorecase
> >set linewrap
> >set nobackspacelimit
> >set notabinsert
> >set modeline
> >set ruler
> >set shiftwidth=4
> >set tabstop=4
> >set visual-matches=reverse
> >
> >map g 1G
> >map _fp {f}
> >map _ic :set ic
> >map _Ic :set noic
> >
> >bind-key cntl_a-prefix ^C
> >bind-key undo-changes-backward u
> >bind-key redo-changes-forward U
> >bind-key historical-buffer-to-current-window -
> >bind-key split-current-window ^T
> >bind-key next-window ^N
> >bind-key previous-window ^P
> >
> >source "filters.rc"
> >source "palettes.rc"
> >setv $autocolor-hook HighlightFilterMsg
> >setv $read-hook HighlightFilterMsg
> >set autocolor=1000
> >
> >~if &seq $progname "xvile"
> >   set color-scheme=white
> >   set ccolor=cyan
> >   ; set font=6x13
> >   set number
> >   setv $pagelen=45
> >   setv $pagewid=88
> >
> >   bind-key copy-to-clipboard M-[
> >   bind-key paste-from-clipboard M-]
> >   bind-key paste-from-primary "M-\\"
> >~endif
> >
> >" custom submodes
> >~with define-submode mail
> >   ts=8
> >   tabinsert
> >   wrapwords
> >   "wrapmargin=-78
> >~endwith
> >
> >~with define-submode txt
> >   ts=8
> >   tabinsert
> >   wrapwords
> >   "wrapmargin=-78
> >~endwith
> >
> >~with define-submode make
> >   ts=8
> >   tabinsert
> >~endwith
> >
> >~with define-submode tcl
> >   comment-prefix='^\s*;\?# '
> >~endwith
> >
> >_______________________________________________
> >vile mailing list
> >address@hidden
> >http://lists.nongnu.org/mailman/listinfo/vile
> >
> 
> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]