" SlateGray1 SlateGray2 SlateGra圓 SlateGray4 LightSteelBlue1 " SkyBlue4 LightSkyBlue1 LightSkyBlue2 LightSkyBlue3 LightSkyBlue4 " DeepSkyBlue2 DeepSkyBlue3 DeepSkyBlue4 SkyBlue1 SkyBlue2 SkyBlue3 " DodgerBlue4 SteelBlue1 SteelBlue2 SteelBlue3 SteelBlue4 DeepSkyBlue1 " blue1 blue2 blue3 blue4 DodgerBlue1 DodgerBlue2 DodgerBlue3 " SlateBlue3 SlateBlue4 RoyalBlue1 RoyalBlue2 RoyalBlue3 RoyalBlue4 " MistyRose4 azure1 azure2 azure3 azure4 SlateBlue1 SlateBlue2 " LavenderBlush3 LavenderBlush4 MistyRose1 MistyRose2 MistyRose3 " honeydew2 honeydew3 honeydew4 LavenderBlush1 LavenderBlush2 " cornsilk2 cornsilk3 cornsilk4 ivory1 ivory2 ivor圓 ivory4 honeydew1 " LemonChiffon1 LemonChiffon2 LemonChiffon3 LemonChiffon4 cornsilk1 " PeachPuff4 NavajoWhite1 NavajoWhite2 NavajoWhite3 NavajoWhite4 " bisque1 bisque2 bisque3 bisque4 PeachPuff1 PeachPuff2 PeachPuff3 " seashell4 AntiqueWhite1 AntiqueWhite2 AntiqueWhite3 AntiqueWhite4 " thistle snow1 snow2 snow3 snow4 seashell1 seashell2 seashell3 " MediumOrchid DarkOrchid DarkViolet BlueViolet purple MediumPurple " maroon MediumVioletRed VioletRed magenta violet plum orchid " tomato OrangeRed red HotPink DeepPink pink LightPink PaleVioletRed " brown DarkSalmon salmon LightSalmon orange DarkOrange coral LightCoral " sienna peru burlywood beige wheat SandyBrown tan chocolate firebrick " LightGoldenrod goldenrod DarkGoldenrod RosyBrown IndianRed SaddleBrown " PaleGoldenrod LightGoldenrodYellow LightYellow yellow gold " LimeGreen YellowGreen ForestGreen OliveDrab DarkKhaki khaki " SpringGreen LawnGreen green chartreuse MediumSpringGreen GreenYellow " DarkSeaGreen SeaGreen MediumSeaGreen LightSeaGreen PaleGreen " CadetBlue MediumAquamarine aquamarine DarkGreen DarkOliveGreen " PaleTurquoise DarkTurquoise MediumTurquoise turquoise cyan LightCyan " SkyBlue LightSkyBlue SteelBlue LightSteelBlue LightBlue PowderBlue " LightSlateBlue MediumBlue RoyalBlue blue DodgerBlue DeepSkyBlue " NavyBlue CornflowerBlue DarkSlateBlue SlateBlue MediumSlateBlue " DimGray SlateGray LightSlateGray gray LightGray MidnightBlue navy " AliceBlue lavender LavenderBlush MistyRose white black DarkSlateGray " moccasin cornsilk ivory LemonChiffon seashell honeydew MintCream azure " AntiqueWhite PapayaWhip BlanchedAlmond bisque PeachPuff NavajoWhite " snow GhostWhite WhiteSmoke gainsboro FloralWhite OldLace linen " Following is from $VIMRUNTIME/rgb.txt with duplicate colors omitted. " Restore normal highlighting by typing ":e"Įxecute 'hi col_'.w.' guifg='.w.' guibg=NONE'Įxecute 'syn keyword col_'.w.' '.w.' contained containedin=vimLineComment' " Optional: First enter ":let g:rgb_fg=1" to highlight foreground only. The script highlights the color names in the comments at the end of the script. ![]() Optionally, enter :let g:rgb_fg=1 first to change the foreground color rather than the background color. Save the file (must have filetype 'vim', for example, file colors.vim), then enter :so % to source the script. " (Unfortunately, can't do 'natural' order, where 'gray2' precedes 'gray19')Ĭopy the following script into gvim. " Sort by color name (uncomment the following 'sort' line) " Sort by RGB value (uncomment the following 'sort' line) " Add hex value column (and format columns nicely) Setlocal buftype=nofile bufhidden=hide noswapfile " Add syntax so each color name is highlighted in its color. " - Delete "grey" lines (duplicate "gray" there are a few more "gray"). " - Delete lines where color name is not a single word (duplicates). ![]() " There are some sort options at the end you can uncomment to your preference " To use, save this file and type ":so %" The script creates a scratch buffer with the named colors in rgb.txt, and displays each color name using a background color of the name. Save the file, then enter :so % to source the script. " turn-on distraction free writing mode for markdown filesĪu BufNewFile,BufRead *.Copy the following script into gvim. vimrc, to run when a Markdown file is created or opened. I made some customizations to get the current appearance.Īdded the following custom function into. Installed syntax highlighting plugin for Markdown.Įnabled iA Writer color scheme for Vim. It may not work as expected in other versions or other OSs. Please note that I tried this with MacVim on OS X Lion. For anyone interested, these are the steps I took to setup it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |