Reputation
6,012
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
12 50 101
Impact
~790k people reached

Jan
14
asked What are the practical limits on file extension name lengths?
Jan
12
revised ZSH - output whole history?
deleted 101 characters in body
Jan
12
comment ZSH - output whole history?
Great! That's an annoying default for me, though, so I'm adding this to my aliases file: alias history="history 0"
Jan
12
accepted ZSH - output whole history?
Jan
12
asked ZSH - output whole history?
Dec
24
awarded  Popular Question
Dec
22
revised Vim - select text highlighted by search?
added 9 characters in body
Dec
22
comment Vim - select text highlighted by search?
Awesome! Thanks.
Dec
22
comment How can I make .vimrc read from an external file?
FYI - In my situation, it was helpful to do let whoami = "" right before the source line, so that if it fails to load the external file, the variable exists and I get the error message we had set up previously for the variable not being set.
Dec
22
comment How can I make .vimrc read from an external file?
This works great! Thanks.
Dec
22
accepted How can I make .vimrc read from an external file?
Dec
22
asked Vim - select text highlighted by search?
Dec
22
answered Remove VIM search highlight
Dec
21
revised How can I make .vimrc read from an external file?
added 244 characters in body
Dec
21
asked How can I make .vimrc read from an external file?
Dec
21
comment How to remove a partition on a USB drive?
I still haven't got around to actually doing this, but your answer seems to be the most complete one here, so you deserve an acceptance. :)
Dec
21
accepted How to remove a partition on a USB drive?
Dec
9
awarded  Popular Question
Nov
29
comment How can I discard my undo history in vim?
This is odd - running those commands individually works fine, and echoing the values throughout the function shows that they are set and unset appropriately. But running the function doesn't reset my undo history - afterwards, I can still undo multiple times. Maybe the set ul= command only affects a local variable until the script exits, and since we change it back before the script exits, it never affect the environment? Did you test this function and have it work - meaning, is there something odd about my setup?
Nov
29
comment How can I discard my undo history in vim?
Your function definition line needs () at the end.