Skip to content

Commit 897c36f

Browse files
committed
Updated readme with a lot more info, updated changelog, bumping verison v0.1.1
1 parent 71081c5 commit 897c36f

File tree

2 files changed

+90
-19
lines changed

2 files changed

+90
-19
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- v0.1.1
2+
-- updated readme substantially
3+
- v0.1.0
4+
-- release

readme.md

Lines changed: 86 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
vim-webdevicons
2-
=============
2+
=================
33

4-
# Intro
4+
## Intro
55

66
After seeing the awesome theme for Atom (set-ui) and the awesome plugins work done for NERDTree and vim-airline and wanting something like this for Vim I decided to create my first plugin.
77

88
Adds a global config map of characters to file extensions (or entire filenames).
99

10-
Works best with the patched font provided (see lib folder), install font and add to your .gvimrc, e.g.:
10+
Works without Configuration *ONLY* when used with the patched font provided (see lib folder), install font and add to your vimrc or gvimrc, e.g.:
1111
> set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Plus\ Nerd\ File\ Types\ 11
1212
13-
# Screenshots
13+
* additional fonts coming soon
14+
* font patching coming soon
1415

15-
![image](screenshots/vim-preview.png)
16+
## Screenshots
17+
18+
![image](screenshots/vim.png)
1619

1720
* NERDTree:
1821

1922
![image](screenshots/nerdtree.png)
2023

21-
* Airline
24+
* vim-airline
2225

2326
>> statusline
2427
@@ -28,20 +31,84 @@ Works best with the patched font provided (see lib folder), install font and add
2831
2932
>>> ![image](screenshots/airline-tabline.png)
3033
31-
# Features
32-
33-
# Configuration
34-
35-
# todo
34+
## Features
35+
* show developer file type glyphs from a font in various vim plugins, currently supports:
36+
* [NERDTree](https://github.com/scrooloose/nerdtree)
37+
* [vim-airline](https://github.com/bling/vim-airline) (statusline and tabline)
38+
* customizable and extendable filetype detections
39+
* ability to override predefined dictionary variable
40+
* if you are unhappy with the default glpyh used you can choose your own
41+
* supports a range of file type extensions by default:
42+
* styl, scss, htm, html, css, less, md, json, js, rb, php, py , coffee ,mustache, hbs, conf, ini, yml, jpg, jpeg, bmp, png, gif, ai
43+
44+
## Configuration
45+
46+
* by default you should not *NEED* to configure anything to get the basics working
47+
* _NOTE:_ For the time being you do *NEED* the patched font provided _unless_ you want to configure the filetype to glyph mappings yourself for your current font
48+
* these options can be defined in your vimrc or gvimrc
49+
* the following options are provided however for overriding
50+
51+
* enable/disable loading the plugin (default 1)
52+
> let g:webdevicons_enable = 1
53+
* enable/disable adding the flags to NERDTree (default 1)
54+
> let g:webdevicons_enable_nerdtree = 1
55+
* enable/disable adding to vim-airline's tabline (default 1)
56+
> let g:webdevicons_enable_airline_tabline = 1
57+
* enable/disable adding to vim-airline's statusline (default 1)
58+
> let g:webdevicons_enable_airline_statusline = 1
59+
60+
* character mappings
61+
62+
* turn on/off file node glpyh decorations (not particularly useful)
63+
> let g:WebDevIconsUnicodeDecorateFileNodes = 1
64+
* change the default character when no match found
65+
> let g:WebDevIconsUnicodeDecorateFileNodesDefaultSymbol = 'x'
66+
* change the default dictionary mappings for file extension matches
67+
> let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = { 'js': 'mycoolJSfontglyph' }
68+
* change the default dictionary mappings for exact file node matches
69+
> let g:WebDevIconsUnicodeDecorateFileNodesExactSymbols = { 'MyReallyCoolFile.okay': 'myreallycoolglyph' }
70+
71+
## todo
3672

73+
* more filetypes to support
74+
* make sure it works properly and does not conflict with [nerdtree-git-plugin](https://github.com/Xuyuanp/nerdtree-git-plugin)
3775
* customize filetype icon colors
3876
* more customization options in general
39-
* more filetypes to support
40-
41-
# FAQ
42-
43-
@todo
44-
45-
# License
4677

47-
@todo
78+
## FAQ / Troubleshooting
79+
80+
* I don't want to use font XYZ, I want to use font ABC
81+
* font patching is coming soon
82+
83+
* It isn't working
84+
* Are you using the patched font provided?
85+
* Support for other fonts will come when patching is working
86+
* _NOTE:_ if running vim and no font set it will default to the termianl font that is set
87+
* check what the vim/gvim font is set to, from ex mode:
88+
> :set guifont?
89+
* check if the plugin is loaded (should give '1'), from ex mode:
90+
> :echo loaded_webdevicons
91+
* check if the plugin is enabled (should give '1'), from ex mode:
92+
> :echo g:webdevicons_enable
93+
* check if the plugin is enabled for NERDTree (should give '1'), from ex mode:
94+
* this should *NOT* need to be set under normal circumstances
95+
> :echo g:webdevicons_enable_nerdtree
96+
* check if you are able to see the characters, from ex mode:
97+
> :echo g:WebDevIconsUnicodeDecorateFileNodesDefaultSymbol
98+
* if all this looks correct you may try this to see if any files show flags
99+
* last resort, see if you can even set the default symbol and have it display anywhere (NERDTree, vim-airline's statusline, vim-airlines's tabline), from ex mode:
100+
> :let g:WebDevIconsUnicodeDecorateFileNodesDefaultSymbol='x'
101+
102+
* @todo: more specific FAQ and Troubleshooting help
103+
104+
## Inspiration and special thanks
105+
106+
* [vim-airline](https://github.com/bling/vim-airline)
107+
* [nerdtree](https://github.com/scrooloose/nerdtree)
108+
* [nerdtree-git-plugin](https://github.com/Xuyuanp/nerdtree-git-plugin)
109+
* [seti-ui](https://atom.io/themes/seti-ui)
110+
* [Steve Losh](http://learnvimscriptthehardway.stevelosh.com/)
111+
112+
## License
113+
114+
see [LICENSE](LICENSE)

0 commit comments

Comments
 (0)