From: Josef 'Jupp' Schugt Date: 2003-07-12T05:34:37+09:00 Subject: Syntax highlighting pager (Was: Ruby T-Shirt Idea) Saluton! * Tim Hammerquist; 2003-07-11, 12:27 UTC: > Reminds me of an answer posted on the vim mailing list: > > : > ...any ideas on how to make vim behave like the 'tail' command in unix? > : > > : > : On my system "cp /usr/bin/tail /usr/local/bin/vim" does the trick, > : though Vi compatibility is subsequently somewhat impaired. That reminds me of something. Create a $HOME/.vimrc.more containing this: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- " No compatibility -- necessary for mappings to work. set nocompatible " Status line set laststatus=0 set cmdheight=1 set nomodifiable " Only in version 6.0 set readonly " My xterms have a navy-blue background, so I need this line too. set background=dark " Turn syntax on syntax on " Key bindings. nmap b nmap q :q " To type the following line, type *two* C-V's followed by two " spaces. This is how you map the spacebar. nmap ^V -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- and alias "vmore" to "vim -u $HOME/.vimrc.more" and you have a pager that does RUBY syntax highlighting. Gis, Josef 'Jupp' Schugt -- N'attribuez jamais � la malice ce que l'incomp�tence explique ! -- Napol�on