Repository navigation
Closed
Labels
Milestone
Description
Required Info
-
I have searched the issues for my issue and found nothing related and/or helpful
-
I have read or at least glanced at the FAQ
-
I have read or at least glanced at the Wiki
-
What version of vim are you using?
- hint:
vim --version
- hint:
Zadane łaty: 1-13
Skompilowany przez Arch Linux
Olbrzymia wersja with GTK3 GUI. Opcje włączone (+) lub nie (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt +tcl/dyn
+balloon_eval +folding +mouse_xterm +termguicolors
+browse -footer +multi_byte +terminfo
++builtin_terms +fork() +multi_lang +termresponse
+byte_offset +gettext -mzscheme +textobjects
+channel -hangul_input +netbeans_intg +timers
+cindent +iconv +num64 +title
+clientserver +insert_expand +packages +toolbar
+clipboard +job +path_extra +user_commands
+cmdline_compl +jumplist +perl/dyn +vertsplit
+cmdline_hist +keymap +persistent_undo +virtualedit
+cmdline_info +lambda +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak +python/dyn +vreplace
+cscope +lispindent +python3/dyn +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con_gui +lua/dyn +rightleft +writebackup
+diff +menu +ruby/dyn +X11
+digraphs +mksession +scrollbind -xfontset
+dnd +modify_fname +signs +xim
-ebcdic +mouse +smartindent -xpm
+emacs_tags +mouseshape +startuptime +xsmp_interact
+eval +mouse_dec +statusline +xterm_clipboard
+ex_extra +mouse_gpm -sun_workshop -xterm_save
+extra_search -mouse_jsbterm +syntax
+farsi +mouse_netterm +tag_binary
vimrc systemu: "/etc/vimrc"
vimrc użytkownika: "$HOME/.vimrc"
2-gi plik vimrc użytkownika: "~/.vim/vimrc"
exrc użytkownika: "$HOME/.exrc"
gvimrc systemu: "/etc/gvimrc"
gvimrc użytkownika: "$HOME/.gvimrc"
2-gi plik gvimrc użytkownika: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
systemowy plik menu: "$VIMRUNTIME/menu.vim"
odwet dla $VIM-a: "/usr/share/vim"
Kompilacja: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Konsolidacja: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -lelf -lnsl -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm - What version of vim-devicons are you using?
- .hint:
:echo webdevicons#version()
0.8.5
- .hint:
- Are you using vim from the terminal or a GUI vim?
Terminal, xfce4-terminal to be more precise. In TMUX. - Are you using Mac, Linux or Windows?
Linux:
$ uname -a
Linux archangel 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29 CEST 2016 x86_64 GNU/LinuxOptional Info
Description
In C/C++ there are two types of files: headers (with .h extension) and and sources (.c). OK, to be honest it is a little bit more complicated; we have:
.c/.hfor plain, old, C files.cxx/.hxxfor mixed C and C++.cpp/.hppfor C++ only.
Often you can find usage ofcpp/hcombination, not really important.
Unfortunatelly vim-devicons shows properly only c files, and h as default (see screenshot)
Reacted by Chad Condon and Ryan L McIntyre

Activity
ryanoasis commentedon Jan 16, 2017
@dawikur Thanks for this. Yeah you are right. I think when I first added the extensions I did not add all possible variations but this would be a good improvement 👍
dawikur commentedon Jan 17, 2017
Is there any possibility to add proper
h/hppicons? Or for now we need to satisfy withc/c++? If there is no possibility for new icons it we may addcto header files. What do you think?ryanoasis commentedon Jan 18, 2017
@dawikur If I understand correctly you mean adding new icon and not just reusing the 'c' icon?
dawikur commentedon Jan 18, 2017
@ryanoasis Ah, sorry for this terrible typo!
Yes, the best solution would be to add new icon, but reusing is better than nothing.
ryanoasis commentedon Jan 18, 2017
Reuse that's easy but I'll look to see what else is available in Nerd Fonts
No problem about the typo.. I figured as much 😉
ryanoasis commentedon Apr 29, 2017
Added these: h, hpp, hxx
Adds C and C++ header filetypes (fixes #190)
dawikur commentedon Apr 30, 2017
Great!
jadero commentedon Sep 10, 2018
Instead of selecting "\uf0fd" from the Font Awesome glyphs I would like to have a dedicated icon just like the ones for c/c++ files.