Skip to content

Instantly share code, notes, and snippets.

View tmcw's full-sized avatar
💭
merging your prs

Tom MacWright tmcw

💭
merging your prs
View GitHub Profile
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
(-------------List output---------- )
341 55
342 55
343 55
344 55
340 56
347 56
338 57
336 58
337 58
(-------------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
(-------------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
(-------------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 July 11, 2019 23:19
Mediocre vim code intelligence with ctags

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