" mac clipboard {{
if has("clipboard")
set clipboard=unnamed
endif
" }} mac clipboardBut apparently according to peer comments, there are ways to yank into clipboards, which is pretty cool.
That works in tmux too. So you can have use the terminal but have it behave as a GUI app in most respects. For example being able to use a touchpad to quicly enlarge/resize splits or scroll a window can be quite useful.
Sometimes also colors in general can get distracting and I just turn on grayscale system-wide, which also doesn’t play with syntax highlighting as text ends up being varying shades of gray with not enough contrast against the background.
Switching it off is the first I do.
There’s definitely something real about too much colours; the archetypal example of colouring our human language tokens by type (verbs, nouns, etc) making no sense sure rings home after a while.
But I found very much use of “colour”+ themeing for two things:
- comments vs code, one toned down vs the other, ideally swappable with a hotkey
- delimited content such as strings. It sure saves a lot of time when you get an imbalanced delimiter nested in a forest and the whole of your file changes colour starting near the imbalance.
I’m very much of the opinion that a lot of syntax highlighting is just dumbed down token matching and badly designed (if at all designed), when it should be much smarter in alerting you of inconsistencies, and putting relevant content forward.
+ by colour I don’t necessarily mean literally in colour, bold or italics can serve well.
Colouring human language by tokens is a very fitting analogy.
I am sure there are corner-cases where I would want to enable it, such as were someone has been in the habit of commenting-out parts of a line.
I don't know anyone who uses syntax highlighting for natural-language prose, though I suppose there are some who do.
I've always found syntax highlighting super distracting, but everyone i have met thinks im crazy.
Otoh i do love me line numbers.
Wow, don't ever use VSCode then! There are hovering diacritics and proofing marks everywhere!
It does real-time syntax checking and quick compilation to check interfaces (at least with TypeScript, JS, HTML, pug, css, Vue, and NodeJS).
I resisted fancy editors for years, as I found them crazy annoying, but over the past few months I've grown to adore VSCode because it has made me about 50% more efficient: I don't have to run the app to find errors, the IDE finds them for me, and it works on Win10, macOS and Linux. It is extremely context aware of my project.
It's like JetBrains but free (or Android Developer Studio, also made by JetBrains...).
:nmap <F12> :set invnumber<CR>