Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of rafael (2125)

Thursday January 23, 2003
11:26 AM

A pair of stupid vim tricks

[ #10143 ]
The command-line window that comes with vim 6 (:help cmdwin) just annoys me. It seems to always open when I type :q<CR> in a hurry. Today I finally decided to disable it, and thus, not finding an easier way, I added this simple mapping in my .vimrc : "nmap q: :q".

I've also discovered that the CTRL-A and CTRL-X commands understand a count argument. So, if you want to add 128 to the number next to the cursor, just enter 128<C-A>. Works also for hexadecimal and octal numbers (see :help 'nf').

On the to-do list : work out something that takes the POD file open in the current window, pipes it to pod2html, and performs a few transformations to it to obtain something suitable for publication here. (yes, the P5P summaries are written in POD, and converted later.)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • This was posted to PerlMonks recently: podwatch: POD previewing tool []

    I haven't tried it however. I use emacs which has a "perl->Perl docs->View manpage of POD in this file" option in cperl-mode.

    Although usually I just pipe the file through pod2html and view it in a browser. :-)