Visdom, briefly.

Wanna evaluate a line of code in your .vimrc without having to so: the whole damn file?

[vim gutter=”false”]
noremap <C-x><C-e> :exe getline(".")<CR>

I stole the binding from Emacs (suckers). Put yer cursor on the line of vim script you want to evaluate and control-x, control-e.

Great for testing mappings and commands and all whatnot.

You do have your caps lock remapped to control, right? Don’t make me check your pinky.

About selah

Programmer at Prominence Advisors. Also dabbling musician. Also cycling commuter.
This entry was posted in Programming, Vim and tagged , , , , . Bookmark the permalink.

One Response to Visdom, briefly.

Leave a Reply

Your email address will not be published. Required fields are marked *