Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
merging your prs

Tom MacWright tmcw

💭
merging your prs
View GitHub Profile
View gist:97d3e1e8ddc413e6e784c71820206d4e
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
View gist:633f0c647088d6ffcadd8c6c635f9819
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
View gist:5ea7ba3decaa73d7992f2703e15bf116
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
View gist:59d9a0d0583d0ed80c051e1d22d87cd3
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
View gist:bec93b5b35d9a63f1c4a5c98411078b1
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
View gist:4ef41e39f2f0d20cfa17fb3006ef494f
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
View gist:42e94c0da56f7e0c49746960fd7052ad
(-------------List output---------- )
0.187042 0.645075
0.193207 0.648417
0.199533 0.651622
0.206013 0.654685
0.212638 0.657603
0.219399 0.660371
0.226287 0.662985
0.233294 0.665442
0.24041 0.667738
View gist:0d4c357b1a5021b6df9fb7028ec3a740
(-------------List output---------- )
-0.00122166 -0.00773919
0.0583786 0.00420576
0.080896 0.00804865
0.0936988 0.0130573
0.100379 0.0424473
0.108123 0.0565801
0.101391 0.0665227
0.0921094 0.0633638
0.102654 0.084326
View gist:13c55955702f627ddefad3397014f70a
(-------------Off output---------- )
OFF 110 0 64
-0.00189951 0.0009937
0.0934656 0.403658
0.0962753 0.323667
0.0983542 0.196518
0.0986576 0.358754
0.0992546 0.456116
0.100818 0.00124446
0.104639 0.494215
@tmcw
tmcw / README.md
Last active Jul 11, 2019
Mediocre vim code intelligence with ctags
View README.md

Though I love vim, it has one pretty big flaw: it doesn't know JavaScript. There are systems that know JavaScript pretty well, like all of Visual Studio Code’s code intelligence features. I've tried all of them: languageserver, tern, typescript server… and they've all broken my heart. And then I went back to the opposite extreme: no autocomplete, no fancy stuff, not even the supertab plugin. Now I've settled in the middle, and am loving mediocre vim. The combination is:

ctags

Ctags is a beautifully ugly system, with extreme performance and simplicity. Just enough intelligence to pluck out the exports and declarations in your files to make jump to definition work mostly. It's basically a set of regular expressions that tries to find keywords and then puts them in a file that your editor can use as an index.

brew install ctags-exuberant
You can’t perform that action at this time.