Vim, textwidth, pine and tin
Ok I have some irritating problems with my linux account at uni. Never had these problems at home, so I'm a bit stuck.
vim is my editor of choice tin is my newsreader of choice pine is hte mail client imposed every time I reply to a post i need to do Code:
:set textwidth=72 my .vimrc as it stands Code:
Also, how the hell do i get pine to accept vim as my editor of choice. I hate pico with a passion |
Here is a web page called 'pine & vim': http//www.stripey.com/vim/pine.html
The following is excepted from that web-site: [code] Calling Vim from Pine By default Pine uses its own built-in editor, Pico. To have it use Vim instead requires this setting: Code:
editor = vim Code:
[X] enable-alternate-editor-cmd Once set up headers will be edited in Pine exactly as before, but moving ‘down’ past the last header and into the message body will cause Vim to be launched to edit the body; no headers will be loaded into Vim. Plain Text (Human Language) Files Different formatting settings are designed for plain text files, those just containing ordinary English (or whatever) language. There isn’t a default filetype for these, so define that all files with the extension .txt should be assumed to be ‘human’ format. Mail and news articles also fall into this category; they already have a filetype, though I also want anything in my postponed directory to be considered a news article, so I have: Code:
augroup filetype Then Vim can be set up so that line breaks are automatically inserted in all human text. I have these at 72 characters so that even if my mail or news article is quoted by somebody else, it still fits into an 80-column terminal: Code:
autocmd FileType mail,human set formatoptions+=t textwidth=72 |
All times are GMT -5. The time now is 05:03 AM. |