Reputation
5,795
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
11 50 99
Impact
~754k people reached

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.
Nov
29
accepted Toggle between two different vim configurations?
Nov
29
comment How can I discard my undo history in vim?
is that meant to be the contents of the function? It's not working for me, but maybe I misunderstood. Also - maybe move this to its own answer?
Nov
24
comment How can I discard my undo history in vim?
@akira - thanks, I updated it.
Nov
24
revised How can I discard my undo history in vim?
clarified question
Nov
24
comment How can I discard my undo history in vim?
This works! Now I'm trying to make a single command do that - preferably :edit!. As a start, I've made a function called ClearUndos() with the commands you listed, but calling it doesn't seem to do anything, whereas doing the commands individually does...
Nov
24
comment How can I discard my undo history in vim?
@akira - no, I want to be able to use u to undo individual changes, but not past the point where I last committed. Exactly as if, every time I committed, I closed the file and re-opened it. Which is what :edit! used to do - it was like closing the file and reopening it. This doesn't HAVE to be tied to a commit point, that's just the time when I'd most frequently want it.
Nov
24
asked How can I discard my undo history in vim?
Nov
23
accepted Macvim color scheme conflicting with .vimrc