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 ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday June 15, 2006
08:19 AM

My new favorite vim mapping

[ #29919 ]

Typically when I set up vim on a new box, I install this nifty little buffer explorer. Then I just type \be and scroll to the buffer I want. Now I'm working on a box where that buffer explorer doesn't work -- it keeps saying "Trailing characters" and no one is sure why. Then when someone pointed out the :ls command, I thought about it and came up with this:

noremap ,j :ls<cr>:e#

Now I just hit ,j ('j' for "jump") and type the number of the buffer I want. Very handy!

Update: Smylers (a coworker) informs me that the reason for the buffer explorer plugin failing was the keepjumps keyword which is used in the plugin. It's from 6.3 but we're using 6.1. Changing this:

command BufExplorer keepjumps :call <SID>StartBufExplorer(0)

... to this ...

command BufExplorer :call <SID>StartBufExplorer(0)

... fixes the problem.

In other news, it's very annoying learning the subtle differences of typing on a British keyboard.

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.
  • In other news, it's very annoying learning the subtle differences of typing on a British keyboard.

    Because double quotes were meant to be hard to type :-)

    I lived in the UK for a few years and brought my UK PC back to New Zealand. The US layout in the norm here and I really should have just bought a new keyboard but I never got round to it. So for years my keyboard layout at home was different to the one at work.

    The other annoyance was the right hand Alt key being reserved for entering accented char

  • It's from 6.3 but we're using 6.1.

    Vim 7 is very nice -- it's got quite a few new features [] such as spell checking [] (it's quite nice to be able to have your Perl comments and POD spell checked), omni completion [] (aka Intellisense) and undo branches [].

    Unfortunately, to get the best out of omnicompletion, we need a specific Perl implementation instead of just using the syntax omni [] approach.

    I think Perl coders who use Vim should get together and try to code one.