Skip to content

Instantly share code, notes, and snippets.

@adscriven
adscriven / colortrans.vim
Last active May 21, 2018 22:57 — forked from MicahElliott/colortrans.py
Convert values between RGB hex codes and xterm-256 color codes.
" Port of colortrans.py
" https://gist.github.com/MicahElliott/719710
" Largely untested. Hopefully Micah did that :-)
let s:shorttorgb = [
\ '000000', '800000', '008000', '808000', '000080', '800080', '008080',
\ 'c0c0c0', '808080', 'ff0000', '00ff00', 'ffff00', '0000ff', 'ff00ff',
\ '00ffff', 'ffffff', '000000', '00005f', '000087', '0000af', '0000d7',
\ '0000ff', '005f00', '005f5f', '005f87', '005faf', '005fd7', '005fff',
\ '008700', '00875f', '008787', '0087af', '0087d7', '0087ff', '00af00',
@adscriven
adscriven / devdocs.md
Last active April 28, 2018 18:37 — forked from romainl/devdocs.md
Look up keyword on http://devdocs.io from Vim

Look up keyword on http://devdocs.io from Vim

Use :DD without argument to look up the word under the cursor, scoped with the current filetype:

:DD

Use :DD keyword to look up the given keyword, scoped with the current filetype:

:DD Map