HN user

kludgeon

29 karma
Posts0
Comments11
View on HN
No posts found.

and I'd call most of this discussion flow control, not conditionals. Strictly speaking, conditionals are one of the primary benefits of zsh over bash imo.

just use zsh. `if [[ -f file ]] {run this command} else {run that command}`

no closing `fi`, use multiline or single line, add an arbitrary number of elif statements. this only requires the short option is set in your z shell.

i wish i knew about this much earlier in my vim days. there's a catch 22: on the one hand, this single plugin solves a ton of problems for the advanced vim user; on the other, advanced users have likely already stitched together a patchwork of plugins, scripts, and configs that accomplish most of this one's functionality. So a new user does not understand how this plugin is truly invaluable, but the value proposition to the experienced user is mitigated by the drastic rewrite and relearn for a potentially marginal benefit.

but if you throw the word lua in the description somewhere that'll net you a couple hundred stars from the nvim people.

edit: i am an nvim/lua person.

the article has a tricky typo here. it says "The keystroke `I` insert text after the first non-blank characters of the line."

but it should say _before_ the first non-blank, which is equivalent to _after_ the last leading blank.

1. be wary of all citations to a _meta_ analysis; 2. be wary of dated results that are being republished without further research; 3. be very wary of publishers with an agenda beyond the fourth estate.

1. check 2. 13-page report published in 2017 without follow up turned into a book released yesterday 3. axios "Between the Lines" (https://www.axios.com/about/) just because i like and/or agree with axios does not let them off the hook on #3