1
- *readme.txt* vim-webdevicons v0.4.2
1
+ *readme.txt* vim-webdevicons v0.4.3
2
2
3
3
===============================================================================
4
4
Contents ~
@@ -10,6 +10,9 @@ Contents ~
10
10
5. Font Installation | readme-font-installation |
11
11
6. Screenshots | readme-screenshots |
12
12
1. Various Terminal Emulators | readme-various-terminal-emulators |
13
+ 2. Windows OS | readme-windows-os |
14
+ 3. Mac OS X | readme-mac-os-x |
15
+ 4. nerdtree-git-plugin | readme-nerdtree-git-plugin |
13
16
7. Features | readme-features |
14
17
8. Extra Configuration | readme-extra-configuration |
15
18
1. character mappings | readme-character-mappings |
@@ -18,19 +21,24 @@ Contents ~
18
21
11. Todo | readme-todo |
19
22
12. FAQ / Troubleshooting | readme-faq-troubleshooting |
20
23
13. Contributing | readme-contributing |
24
+ 1. Promotion | readme-promotion |
25
+ 2. Source code | readme-source-code |
21
26
14. Rationale | readme-rationale |
22
27
15. Inspiration and special thanks | readme-inspiration-special-thanks |
28
+ 1. Also thanks to the many contributors: | readme-also-thanks-to-many-contributors |
23
29
16. License | readme-license |
24
30
17. References | readme-references |
25
31
26
32
===============================================================================
27
33
*readme-introduction*
28
34
Introduction ~
29
35
30
- Adds filetype glyphs (icons) to other vim plugins such as nerdtree [1] and vim-
31
- airline [2], and lightline.vim [3] Image: image (see reference [4])
36
+ Adds filetype glyphs (icons) to other vim plugins such as NERDTree [1], vim-
37
+ airline [2], and lightline.vim [3]
32
38
33
- - vim-webdevicons v0.4.2
39
+ Image: image (see reference [4])
40
+
41
+ - vim-webdevicons v0.4.3
34
42
35
43
- Usage
36
44
- Quick Setup (TL;DR)
@@ -55,36 +63,44 @@ airline [2], and lightline.vim [3] Image: image (see reference [4])
55
63
*readme-usage*
56
64
Usage ~
57
65
58
- After installing the patched font and setting the vim font just open nerdtree
59
- or look at vim-airline (statusline or tabline).
66
+ After installing the patched font and setting the vim font just open NERDTree
67
+ [1] or look at vim-airline [2] (statusline or tabline).
60
68
61
69
- _NOTE:_ if you don't have a vim font set and are not running gvim you will
62
70
need to set the terminal font.
63
71
64
- - _NOTE:_ for NERDTree support, you must configure vim to load NERDTree
65
- _before_ vim-webdevicons loads.
72
+ - _NOTE:_ for NERDTree [1] support, you **must** configure vim to load
73
+ NERDTree _before_ vim-webdevicons loads.
74
+
75
+ - _NOTE:_ for vim-airline [2] support, you **must** configure vim to load
76
+ vim-airline _before_ vim-webdevicons loads.
77
+
78
+ - _NOTE:_ for better nerdtree-git-plugin [5] support, you _should_ configure
79
+ vim to load nerdtree-git-plugin _before_ vim-webdevicons loads.
66
80
67
81
===============================================================================
68
82
*readme-quick-setup*
69
83
Quick Setup (TL;DR) ~
70
84
71
- 1. Install the plugin per your usual method _More details_
72
-
85
+ 1. Install the plugin per your usual method _More details..._
73
86
2. Download and install a patched font (or patch your own) from: ryanoasis
74
- /nerd-filetype-glyphs-fonts-patcher [5 ]_More details_
75
-
76
- 3. Set terminal font (if using 'vim' ) or set 'guifont' in 'vimrc' (if using
77
- 'gvim' ) _More details_
87
+ /nerd-filetype-glyphs-fonts-patcher [6 ]_More details..._
88
+ 3. Set font _More details..._
89
+ 4. a. If using 'vim' : Set terminal font
90
+ 5. b. If using 'gvim' : Set 'guifont' in 'vimrc'
78
91
79
92
===============================================================================
80
93
*readme-font-configuration*
81
94
Font Configuration ~
82
95
96
+ - Encoding **must** be set to UTF-8 for the glyphs to show 'vim set
97
+ encoding=utf8'
98
+
83
99
- The _ONLY_ configuration needed should be setting the font vim uses to a
84
100
patched font.
85
101
86
102
Already patched fonts and the font patcher script are provided at: nerd-
87
- filetype-glyphs-fonts-patcher [5 ]
103
+ filetype-glyphs-fonts-patcher [6 ]
88
104
89
105
It works without configuration _ONLY_ when used with a patched font provided in
90
106
the separate repository above. Install the font and add it to your 'vimrc' or
@@ -114,45 +130,64 @@ folder. For example:
114
130
cd ~/.fonts && curl -fLo DroidSansMonoForPowerlinePlusNerdFileTypes.otf https://raw.githubusercontent.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher/master/patched-fonts/Droid%20Sans%20Mono%20for%20Powerline%20Plus%20Nerd%20File%20Types.otf
115
131
<
116
132
You can find more fonts under my repository nerd-filetype-glyphs-fonts-patcher
117
- [6 ].
133
+ [7 ].
118
134
119
135
===============================================================================
120
136
*readme-screenshots*
121
137
Screenshots ~
122
138
123
- Image: image (see reference [7 ])
139
+ Image: image (see reference [8 ])
124
140
125
141
- NERDTree:
126
142
127
- Image: image (see reference [8 ])
143
+ Image: image (see reference [9 ])
128
144
129
145
- vim-airline
130
- - statusline Image: image (see reference [9])
131
- - tabline Image: image (see reference [10] ) Image: image (see reference [11] )
146
+ - statusline Image: image (see reference [10] )
147
+ - tabline Image: image (see reference [11] )Image: image (see reference [12] )
148
+ - fileformats symbols Image: image (see reference [13] )
132
149
133
150
- Different patched fonts example:
134
151
135
- Image: image (see reference [12 ] )
152
+ Image: image (see reference [14 ] )
136
153
137
154
- Glyph set test file
138
155
139
- Image: image (see reference [13 ] )
156
+ Image: image (see reference [15 ] )
140
157
141
158
- Lightline:
142
159
143
- Image: image (see reference [14 ] )
160
+ Image: image (see reference [16 ] )
144
161
145
162
-------------------------------------------------------------------------------
146
163
*readme-various-terminal-emulators*
147
164
Various Terminal Emulators ~
148
165
149
166
- gnome terminal
150
167
151
- Image: image (see reference [15 ] )
168
+ Image: image (see reference [17 ] )
152
169
153
170
- Urxvt terminal
154
171
155
- Image: image (see reference [16] )
172
+ Image: image (see reference [18] )
173
+
174
+ -------------------------------------------------------------------------------
175
+ *readme-windows-os*
176
+ Windows OS ~
177
+
178
+ Image: image (see reference [19] )
179
+
180
+ -------------------------------------------------------------------------------
181
+ *readme-mac-os-x*
182
+ Mac OS X ~
183
+
184
+ help wanted: https://github.com/ryanoasis/vim-webdevicons/issues/32
185
+
186
+ -------------------------------------------------------------------------------
187
+ *readme-nerdtree-git-plugin*
188
+ nerdtree-git-plugin ~
189
+
190
+ Image: image (see reference [20] )
156
191
157
192
===============================================================================
158
193
*readme-features*
@@ -179,7 +214,7 @@ Features ~
179
214
- supports full filename matches, by default:
180
215
- 'gruntfile.coffee, gruntfile.js, gruntfile.ls, gulpfile.coffee,
181
216
gulpfile.js, gulpfile.ls, dropbox'
182
- - font patcher (nerd-filetype-glyphs-fonts-patcher [5 ])
217
+ - font patcher (nerd-filetype-glyphs-fonts-patcher [6 ])
183
218
- requires: python2, python-fontforge package
184
219
- example usage > ./font-patcher unpatched-sample-fonts/Droid\ Sans\ Mono\
185
220
for\ Powerline.otf
@@ -192,7 +227,7 @@ Extra Configuration ~
192
227
working
193
228
194
229
- _NOTE:_ You _NEED_ to use one of the patched font provided or patch your
195
- own (nerd-filetype-glyphs-fonts-patcher [5 ]) _unless_ you want to configure
230
+ own (nerd-filetype-glyphs-fonts-patcher [6 ]) _unless_ you want to configure
196
231
the filetype to glyph mappings yourself for your current font
197
232
198
233
- these options can be defined in your 'vimrc' or 'gvimrc'
@@ -267,20 +302,23 @@ character mappings ~
267
302
*readme-installation*
268
303
Installation ~
269
304
305
+ - Sample Windows vimrc configuration 1 [21]
306
+ - Sample Linux vimrc configuration 1 [22]
307
+
270
308
This plugin follows the standard runtime path structure, and as such it can be
271
309
installed with a variety of plugin managers:
272
310
273
- - Pathogen [17 ]
311
+ - Pathogen [23 ]
274
312
- 'git clone https://github.com/ryanoasis/vim-webdevicons ~/.vim/bundle/vim-
275
313
webdevicons'
276
- - NeoBundle [18 ]
314
+ - NeoBundle [24 ]
277
315
- Add to vimrc:
278
316
279
317
"vim NeoBundle 'ryanoasis/vim-webdevicons'" * And install it:
280
318
281
319
'vim :so ~/.vimrc :NeoBundleInstall'
282
320
283
- - Vundle [19 ]
321
+ - Vundle [25 ]
284
322
285
323
- Add to vimrc:
286
324
@@ -297,26 +335,31 @@ installed with a variety of plugin managers:
297
335
Lightline ~
298
336
299
337
To add the appropriate icon to lightline [3], call the function
300
- 'WebDevIconsGetFileTypeSymbol()' in your '.vimrc'. For example, you might set
301
- your filetype section to:
338
+ 'WebDevIconsGetFileTypeSymbol()' and/or 'WebDevIconsGetFileFormatSymbol()' in
339
+ your '.vimrc'. For example, you could set your sections to:
302
340
>
303
341
let g:lightline = {
304
342
\ 'component_function': {
305
343
\ 'filetype': 'MyFiletype',
344
+ \ 'fileformat': 'MyFileformat',
306
345
\ }
307
346
\ }
308
347
309
348
function! MyFiletype()
310
349
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype . ' ' . WebDevIconsGetFileTypeSymbol() : 'no ft') : ''
311
350
endfunction
351
+
352
+ function! MyFileformat()
353
+ return winwidth(0) > 70 ? (&fileformat . ' ' . WebDevIconsGetFileFormatSymbol()) : ''
354
+ endfunction
312
355
<
313
356
===============================================================================
314
357
*readme-todo*
315
358
Todo ~
316
359
317
360
- [ ] more filetypes to support
318
- - [ ] make sure it works properly and does not conflict with nerdtree-git-
319
- plugin [20 ]
361
+ - [x ] make sure it works properly and does not conflict with nerdtree-git-
362
+ plugin [5 ]
320
363
- [ ] customize filetype icon colors
321
364
- [ ] more customization options in general
322
365
@@ -326,14 +369,14 @@ FAQ / Troubleshooting ~
326
369
327
370
- I don't want to use any of the fonts provided, I want to use font ABC
328
371
329
- - try the font patcher: nerd-filetype-glyphs-fonts-patcher [5 ]
372
+ - try the font patcher: nerd-filetype-glyphs-fonts-patcher [6 ]
330
373
331
374
- see font configuration above for more details
332
375
333
376
- It isn't working
334
377
335
378
- Are you using the patched font provided in the separate repo (nerd-
336
- filetype-glyphs-fonts-patcher [5 ]) or are you patching your own?
379
+ filetype-glyphs-fonts-patcher [6 ]) or are you patching your own?
337
380
338
381
- _NOTE:_ if running vim and no font set it will default to the terminal font
339
382
that is set
@@ -405,6 +448,22 @@ FAQ / Troubleshooting ~
405
448
*readme-contributing*
406
449
Contributing ~
407
450
451
+ Best ways to contribute _Star it on GitHub - if you use it and like it please
452
+ at least star it :)_ Promote _Open issues/tickets [26] _ Submit fixes and/or
453
+ improvements with Pull Requests
454
+
455
+ -------------------------------------------------------------------------------
456
+ *readme-promotion*
457
+ Promotion ~
458
+
459
+ Like the project? Please support to ensure continued development going forward:
460
+ _Star this repo on GitHub [27] _ Follow the repo on GitHub [27] _Vote for it on
461
+ vim.org [28] _ Follow me **Twitter [29] ** GitHub [30]
462
+
463
+ -------------------------------------------------------------------------------
464
+ *readme-source-code*
465
+ Source code ~
466
+
408
467
Contributions and pull requests are welcome.
409
468
410
469
No real formal process has been setup - just stick to general good conventions
@@ -424,11 +483,17 @@ Inspiration and special thanks ~
424
483
425
484
- vim-airline [2]
426
485
- nerdtree [1]
427
- - nerdtree-git-plugin [20]
428
- - seti-ui [21]
429
- - devicons by Theodore Vorillas [22]
430
- - benatespina development.svg.icons [23]
431
- - Steve Losh [24]
486
+ - nerdtree-git-plugin [5]
487
+ - seti-ui [31]
488
+ - devicons by Theodore Vorillas [32]
489
+ - benatespina development.svg.icons [33]
490
+ - Steve Losh [34]
491
+
492
+ -------------------------------------------------------------------------------
493
+ *readme-also-thanks-to-many-contributors*
494
+ Also thanks to the many contributors: ~
495
+
496
+ - contributors list [35]
432
497
433
498
===============================================================================
434
499
*readme-license*
@@ -443,26 +508,37 @@ References ~
443
508
[1] https://github.com/scrooloose/nerdtree
444
509
[2] https://github.com/bling/vim-airline
445
510
[3] https://github.com/itchyny/lightline.vim
446
- [4] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.2/overall-screenshot.png
447
- [5] https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher
448
- [6] https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher/tree/master/patched-fonts
449
- [7] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.2/vim.png
450
- [8] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.2/nerdtree.png
451
- [9] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.2/airline-statusline.png
452
- [10] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.2/airline-tabline-1.png
453
- [11] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.2/airline-tabline-2.png
454
- [12] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.2/different-fonts-sample.png
455
- [13] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.2/glyph-set-test.png
456
- [14] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.2/lightline.png
457
- [15] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.2/terminal-gnome-sample.png
458
- [16] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.2/terminal-urxvt-sample.png
459
- [17] https://github.com/tpope/vim-pathogen
460
- [18] https://github.com/Shougo/neobundle.vim
461
- [19] https://github.com/gmarik/vundle
462
- [20] https://github.com/Xuyuanp/nerdtree-git-plugin
463
- [21] https://atom.io/themes/seti-ui
464
- [22] http://vorillaz.github.io/devicons
465
- [23] https://github.com/benatespina/development.svg.icons
466
- [24] http://learnvimscriptthehardway.stevelosh.com/
511
+ [4] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.3/overall-screenshot.png
512
+ [5] https://github.com/Xuyuanp/nerdtree-git-plugin
513
+ [6] https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher
514
+ [7] https://github.com/ryanoasis/nerd-filetype-glyphs-fonts-patcher/tree/master/patched-fonts
515
+ [8] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.3/vim.png
516
+ [9] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.3/nerdtree.png
517
+ [10] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.3/airline-statusline.png
518
+ [11] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.3/airline-tabline-1.png
519
+ [12] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.3/airline-tabline-2.png
520
+ [13] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.3/fileformats-symbols-sample.png
521
+ [14] https://raw.githubusercontent.com/wiki/ryanoasis/vim-webdevicons/screenshots/v0.4.3/different-fonts-sample.png
522
+ [15] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.3/glyph-set-test.png
523
+ [16] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.3/lightline.png
524
+ [17] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.3/terminal-gnome-sample.png
525
+ [18] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.3/terminal-urxvt-sample.png
526
+ [19] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.3/windows-sample.png
527
+ [20] https://github.com/ryanoasis/vim-webdevicons/wiki/screenshots/v0.4.3/nerdtree-git-plugin-sample.png
528
+ [21] https://github.com/ryanoasis/vim-webdevicons/wiki/samples/v0.4.3/.vimrc-windows-1
529
+ [22] https://github.com/ryanoasis/vim-webdevicons/wiki/samples/v0.4.3/.vimrc-linux-1
530
+ [23] https://github.com/tpope/vim-pathogen
531
+ [24] https://github.com/Shougo/neobundle.vim
532
+ [25] https://github.com/gmarik/vundle
533
+ [26] https://github.com/ryanoasis/vim-webdevicons/issues
534
+ [27] https://github.com/ryanoasis/vim-webdevicons
535
+ [28] http://www.vim.org/scripts/script.php?script_id=5114
536
+ [29] http://twitter.com/ryanlmcintyre
537
+ [30] https://github.com/ryanoasis
538
+ [31] https://atom.io/themes/seti-ui
539
+ [32] http://vorillaz.github.io/devicons
540
+ [33] https://github.com/benatespina/development.svg.icons
541
+ [34] http://learnvimscriptthehardway.stevelosh.com/
542
+ [35] https://github.com/ryanoasis/vim-webdevicons/network/members
467
543
468
544
vim: ft=help
0 commit comments