Re: lug-bg: tesktov redaktor
- Subject: Re: lug-bg: tesktov redaktor
- From: stoev@xxxxxxxxxxxxxxxxx (Julian Stoev)
- Date: Sat, 15 Apr 2000 15:06:07 +0900
On Fri, Apr 14, 2000 at 09:43:16AM +0300, Stanislav Grozev wrote:
|On Fri, Apr 14, 2000 at 05:35:49AM +0900, Julian Stoev wrote:
|>
|> I kak moga da go nakaram da mi formatira s dylzina na red primerno 70 znaka i to samo
|> kogato go vikam ot Mutt ili ot slrn primerno. Vse pak za mail i news e za predpochitane
|> formatiraneto da stava avtomatichno, a ne az da trakam s [Enter] nakraia na vseki red.
|
|wyw ~/.vimrc slagash
|
|au BufRead mutt-HOSTNAME* normal :set wrapmargin=10^M
Eto kakvo namerih po temata:
http://www.student.dtu.dk/~c928400/vim/setup/vimrc
Raboti dosta dobre zasega.
--JS
"
-------------------------------------------------------------------------
" group_4 Email and News
"
-------------------------------------------------------------------------
"
" Initial settings
"
"
" Example of how to strip quoted signature:
"au BufNewFile,BufRead mutt*[0-9] let rep=&report|let
&report=1000|let tmp="> -- "|0pu =tmp|let tmp=""|1pu =tmp|g/^> --
$/;/^$/-d|1d "|let &report=rep
"
" I use mutt for email and slrn for postings
autocmd BufRead mutt*[0-9] se tw=70
autocmd BufRead .followup,.article,.letter se tw=70
"
" Lets cut up the text:
"
" Snip some part of followups, visual should be invoked with V
iab [--- snip ---] [--- snip ---]
vmap ,snip c[--- snip ---]<ESC>
" Inserting an ellipsis to indicate deleted text (Visual v or
V)
iab [...] [...]
vmap ,ell c[...]<ESC>
" Now split a commented line and make a line for commenting:
iab [...]
[...]<CR><CR>> [...] <ESC>kO
"
"
"
" Cc: original poster. In News, when I suddenly deicde to notify
anyway
nmap ,Cc 1G}/@<CR>T<yt>1G}OCc: <C-R>"<ESC>
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|