48 karma · joined December 22, 2016
- :set hlsearch
- Type `/`
- Spend five seconds thinking up a regex that approximately matches the things I want to change
- Hit Enter
- Cycle through matches with `n`/`N`, checking to see if they're what I expected
- If they're not, press `/` then <Up> and edit the regex
- When satisfied, type `:%s//`, enter the replacement you want to make, then `/g<Enter>` to apply the change everywhere
Donald Trump bears little resemblance to Reagan or Lincoln, but he is still a Republican. Wilson, likewise, was a progressive - even if he did other things we might consider anti-progressive.
The definition of progressivism, like Republicanism (and conservatism, and liberalism), has also changed significantly in the last century. Prohibition of alcohol, for example, was a central plank of most progressives of Woodrow's era, but it is not considered such now. Likewise, opposition to racial inequality is often associated with modern progressivism, but it was not so explicitly supported by many early progressives.
function doSomething() : int {
return myPromise
.then(() => {
// ...do thing
/* what */
})
.catch(() => {
// ..do other thing
/* the heck */
});
}
becomes function doSomething(): int {
return myPromise
.then(() => {})
.catch(() => {});
}
Still a very nice pretty printer, though.