ryanoasis / vim-devicons Goto Github PK
View Code? Open in Web Editor NEWAdds file type icons to Vim plugins such as: NERDTree, vim-airline, CtrlP, unite, Denite, lightline, vim-startify and many more
License: MIT License
Adds file type icons to Vim plugins such as: NERDTree, vim-airline, CtrlP, unite, Denite, lightline, vim-startify and many more
License: MIT License
Is it possible to remove the wrapping [ ] around the icons in the NERDTree? I think it would look cleaner without them.
If you add new files through NERDTree (press m then a) the newly added files do not have icons next to them.
I'm using console vim and the glyphs in NERDTree default to single width. I am unable to set it to double width even with confirming WebDevIconsUnicodeGlyphDoubleWidth is set to 1. There is still the empty space before the closing bracket. Not sure if console vim is just unable to have double width or not.
Fix and update nerdtree screenshots
Rename project: vim-webdevicons to vim-devicons ?
Reasoning - icons are not web development specific and this name would now more accurately match the intended scope.
Any thoughts?
Vote: http://poll.gitrun.com/ryanoasis/vim-webdevicons/issues/64
Hi,
I have a bug, that probably can not be fixed, or it's not related to this plugin, but i'll post it here because i noticed it when i installed this. When i open nerdtree, icons are there, but when i open subfolder, beside icon for filetype, i get strange overlaps with other icons:
As soon as i select a file, that overlaping dissapears and everything looks fine. It's not a much of a deal, but can be annoying. It happens only in Gvim, in terminal vim works fine. I tried calling :redraw
but it didn't work out.
I believe it's some of the VIM redrawing issues, but not sure.
Here are some details about the system if needed:
OS: Xubuntu 15.04 x64
Vim: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 5 2015 15:51:32)
Included patches: 1-729
Vimrc: https://github.com/kristijanhusak/vimfiles/blob/master/vimrc
things like asdf.Js asdf.JS asdf.jS and gRuNtFiLe.Js should work
I am concerned about size, particularly those of us who use plugin managers. if they pull with the upcoming font samples it seems like a waste to make them download all of those fonts they might not even need.
Any other opinions greatly appreciated.
support ctrlp.vim - add icons to mru and various lists ?
Get error after updating to vim-airline/vim-airline@ca925ef
This line in the config everything breaks:
let g:airline#extensions#tabline#enabled = 1
Error detected while processing function airline#extensions#tabline#get..<SNR>85_get_buffers..<SNR>85_get_visible_buffers..airline#extensions#tabline#get_buffer_name:
line 1:
E117: Unknown function: airline#extensions#tabline#formatters#webdevicons#format
Press ENTER or type command to continue
Error detected while processing function airline#extensions#tabline#get..<SNR>85_get_buffers..<SNR>85_get_visible_buffers..airline#extensions#tabline#get_buffer_name:
line 1:
E15: Invalid expression: airline#extensions#tabline#formatters#{s:formatter}#format(a:nr, s:get_buffer_list())
Press ENTER or type command to continue
Error detected while processing function airline#extensions#tabline#get_buffer_name:
line 1:
E117: Unknown function: airline#extensions#tabline#formatters#webdevicons#format
Press ENTER or type command to continue
Excuse me,I encountered the following problem during the following operations.
$ ./font-patcher unpatched-sample-fonts/Droid\ Sans\ Mono\ for\ Powerline.otf
Traceback (most recent call last):
File "./font-patcher", line 4, in
import psMat
ImportError: No module named psMat
Using urxvt-256color and vim on archlinux.
Font setting in ~/.Xresources
URxvt.font: xft:Droid Sans Mono for Powerline Plus Nerd File Types:size=11
URxvt.boldFont: xft:Droid Sans Mono for Powerline Plus Nerd File Types:bold:size=11
I downloaded your patched font under ~/.fonts
xset q confirms ~/.fonts is searched
:echo g:WebDevIconsUnicodeDecorateFileNodesDefaultSymbol
displays a small rectangle, the same I see in NERDTree instead of the icons
If I launch gvim, it works. The problem is only present in vim.
Fix c++ glyph (++ hard to see)
Add more filetypes for c++
Add c glyph and filetype extensions
I have disabled file encoding information in airline by modifying g:airline_section_y by
let g:airline_section_y = '%{getcwd()}'
But after installing vim-webdevicons this variable no longer works.
Before
After installing vim-webdevicons
The line affecting airline_section_y is not working.
How to get the variables working again ?
how to?
All (or at least) most glyphs appear to be wider than the normal characters (double width), and therefore an additional space gets appended.
Unfortunately the URxvt terminal does not handle those like gVim or libvte-based terminals (e.g. gnome-terminal) do (ref).
Would it be possible to only use a single character cell (as wide as a M
then probably)?
make sure using local/script level vars and methods unless have to be global
line continuation side effect
comment folds: use fold markers in the source
/* global variables {{{1 */
int varA, varB;
/* functions {{{1 */
/* funcA() {{{2 */
void funcA() {}
/* funcB() {{{2 */
void funcB() {}
http://vimdoc.sourceforge.net/htmldoc/fold.html
http://vimdoc.sourceforge.net/htmldoc/usr_41.html#write-plugin
Hi,
I'm using gvim7.4 in ubuntu and I'm sure I have installed the latest version of NERDTree, Airline as well as Pathegon with no git-NERDTree. I just installed the plugin by copying the vim-webdevicons-master folder into /bundle.
However, when gvim starts up, it gives out the following errors:
Error in function SetupListeners:
Line 1
E121:undefined variable :NERDTreePathNotifier
Error in function SetupListeners:
Line 2
E121:undefined variable :NERDTreePathNotifier
Error in function SetupListeners:
Line 3
E121:undefined variable :NERDTreePathNotifier
After that I find there is no icon loaded.
When a new file is opened, it prints the following message:
E117: undefined function: airline#extensions#tabline#webdevicons#format
I'd appreciate any kind of help.
Better support with: https://github.com/Xuyuanp/nerdtree-git-plugin
Hi!
Is it possible to support Perl?
Hi Ryan,
thanks for this awesome plugin. I installed your plugin and would like to add a script, which installs the *.otf
font. I got it running under Xubuntu, to change the script for other operating systems should be no problem.
Generate from readme
I setup vim-webdevicons last week on another machine and it is working ok. Today I setup my work machine and I cannot get it working. Both the same version of Fedora with latest patches and I use the same vimrc on both. The only thing different is that I installed vim-webdevicons on different dates. I think maybe it is something to do with commit 203779d
Error detected while processing function <SNR>39_initialize..<SNR>39_setSyntax:
line 2:
E216: No such event: nerdtree syntax match hideBracketsInNerdTree "[\]|\[]*" contained conceal cchar=_ containedin=ALL
line 3:
E216: No such event: nerdtree set conceallevel=3
line 4:
E216: No such event: nerdtree set concealcursor=nvic
Press ENTER or type command to continue
Here is my vimrc.
" Setup Vundle bundle support
" ---------------------------
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
filetype off " Required before bundles
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required!
Plugin 'gmarik/Vundle.vim'
Plugin 'bling/vim-airline'
Plugin 'scrooloose/nerdtree'
Plugin 'ryanoasis/vim-webdevicons'
call vundle#end()
filetype plugin indent on " Automatically detect file types. Required after bundles.
syntax on " enable syntax
autocmd! bufwritepost .vimrc source ~/.vimrc
All my plugins are up to date.
[hughest@argon: ~/.vim/bundle]$ for X in * ;do printf "$X\t"; (cd $X ; git rev-parse HEAD;); done
nerdtree 3b98a7fcae8f9fff356907171f0406ff8cd28921
vim-airline f45ecdac15d99ed2354873a8b4d40432fd0a85a3
vim-webdevicons 5f4e194dc628f6bb16a23b64f595a42bf8bcad04
Vundle.vim cfd3b2d388a8c2e9903d7a9d80a65539aabfe933
vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 13 2014 08:59:18)
Support various frameworks with exact matches and add new partial regex matches
E.g.
*jquery*.js
*angular*.js
*dojo*.js
*mootools*.js
*prototype*.js
codeigniter* (dir)
yii* (dir), yiic, yiic.bat
After installing this plugin, I started receiving the following error message when opening Vim:
$ vim
Error detected while processing /Users/mathias/.env/.vim/bundle/vim-webdevicons/plugin/webdevicons.vim:
line 256:
E117: Unknown function: airline#add_statusline_func
Press ENTER or type command to continue
I use lightline.vim rather than vim-airline, so I guess it makes sense that it cannot find the function.
Add vimrc setup example to readme
Link to wiki?
Changelog has fallen behind
i have only used on linux but should add to the readme for specific setup on Windows and OSX (particularly guifont on vim and font installation)
For each terminal:
E.g. xterm, konsole, gnome, urxvt
Hello, I've installed vim-webdevicons successfully (I think), but now I can not change the NerdTree symbol, because the one appearing by default is ugly (and it looks is cut):
I've tried with this settings in my vimrc , but they have no effect:
let g:WebDevIconsUnicodeDecorateFolderNodes = 1
let g:WebDevIconsUnicodeDecorateFolderNodeDefaultSymbol = ''
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {}
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['nerdtree'] = ''
What I'm doing wrong?
Note: I've patched Monaco font (I'm on MacOSX), other icons are showing well, but directory nodes are not. I'm using gvim.
Thanks for your help.
Note 2: I don't know if could be related but my NERDTree is configured to not launch on gvim start.
Hi, nice work!
I would like to be able to use this with my usual font, Source Code Pro. It would be great with a script that could patch any font.
I cannot explain when this happens exactly, but sometimes the square brackets around the icons resurface! Have you noticed this?
vim
echo &fileformats
unix,dos,mac
![selection_12_06_15_13 38 31_353x142_001](https://cloud.githubusercontent.com/assets/8083459/8135895/5c2e8d60-1108-11e5-890a-693251a7538f.png)
g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['js']
:
I tried setting this at the very end of my .vimrc
and it didn't work because the global dictionary wasn't set yet. When are we to configure this?
The last one is over one year old.
https://github.com/Shougo/unite.vim
Unite is gaining popularity and looks like the API is pretty streamlined.
It'd would great to have vim-devicons working with Unite.
getting errors after updating webdevicons and airline: https://dl.dropboxusercontent.com/u/5837324/errors.png
Add quick setup (TLDR) section to readme
Can you add something like that? https://dl.dropboxusercontent.com/u/5837324/vim-nerdtree.png (directory icons). I use a patched nerdtree
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.