615 reputation
1419
bio website andrewferrier.com/blog
location London, United Kingdom
age
visits member for 5 years, 5 months
seen Dec 13 at 14:10

Oct
20
awarded  Popular Question
Oct
12
comment Inserting a blank line in vim?
I now use this, so I've marked this as the "correct" solution; but all the answers here are great.
Oct
12
accepted Inserting a blank line in vim?
Oct
1
awarded  Popular Question
Sep
30
awarded  Explainer
Sep
29
comment How do I patch the shellshock vulnerability on an obsolete Ubuntu system that I can't upgrade?
This won't help; as the OP said, it isn't supported any more, so there won't be an upgrade for bash.
Aug
20
awarded  Famous Question
Aug
20
awarded  Popular Question
Aug
6
awarded  Yearling
Aug
6
revised No syntax highlight on .md files?
Spelling fix
Aug
6
suggested approved edit on No syntax highlight on .md files?
Aug
6
comment How can I construct a vim keymapping that inserts the current date?
I find @Ingo Karkat's second example slightly clearer, but this definitely works too, thanks.
Aug
6
accepted How can I construct a vim keymapping that inserts the current date?
Aug
6
comment How can I construct a vim keymapping that inserts the current date?
Huh. Just tried the first one again and it worked this time. I guess I'm just typo-prone. Sorry! Thanks for the help in figuring this out, I just learnt about <expr> in mappings :)
Aug
5
comment How can I construct a vim keymapping that inserts the current date?
Correction, the second does work; I made a typo.
Aug
5
comment How can I construct a vim keymapping that inserts the current date?
The second doesn't work either; I just get the error "Unknown mark".
Aug
5
comment How can I construct a vim keymapping that inserts the current date?
Hello. I tried the first, but it doesn't quite work. I should have been clearer; I don't want to insert the <CR>, as I want to leave the cursor in place to finish off the filename manually. But when I remove it, it just opens a command-line and inserts the literal text =strftime('%F'). Am I doing something wrong?
Aug
5
asked How can I construct a vim keymapping that inserts the current date?
Jul
16
accepted How do I find where a local Lotus Notes database is?
Jul
15
accepted How can I construct a vim mapping to perform Ctrl-N, but as if iskeyword included '-'?