Skip to content

C/C++ header files #190

Closed
Closed

Description

@dawikur

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
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
  • 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/Linux

Optional Info

  • Provide screenshots where appropriate
    vim

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/.h for plain, old, C files
  • .cxx/.hxx for mixed C and C++
  • .cpp/.hpp for C++ only.
    Often you can find usage of cpp/h combination, not really important.

Unfortunatelly vim-devicons shows properly only c files, and h as default (see screenshot)

Activity

  1. ryanoasis commented on Jan 16, 2017

    @ryanoasis
    Owner

    @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 👍

  2. dawikur commented on Jan 17, 2017

    @dawikur
    Author

    Is there any possibility to add proper h/hpp icons? Or for now we need to satisfy with c/c++ ? If there is no possibility for new icons it we may add c to header files. What do you think?

  3. ryanoasis commented on Jan 18, 2017

    @ryanoasis
    Owner

    @dawikur If I understand correctly you mean adding new icon and not just reusing the 'c' icon?

  4. dawikur commented on Jan 18, 2017

    @dawikur
    Author

    @ryanoasis Ah, sorry for this terrible typo!

    Yes, the best solution would be to add new icon, but reusing is better than nothing.

  5. ryanoasis commented on Jan 18, 2017

    @ryanoasis
    Owner

    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 😉

  6. modified the milestone: v0.9.0 on Feb 25, 2017
  7. ryanoasis commented on Apr 29, 2017

    @ryanoasis
    Owner

    Added these: h, hpp, hxx

  8. added a commit that references this issue on Apr 29, 2017
    96392c7
  9. dawikur commented on Apr 30, 2017

    @dawikur
    Author

    Great!

  10. jadero commented on Sep 10, 2018

    @jadero

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions