Installation - ryanoasis/vim-devicons GitHub Wiki
Get a Nerd Font! or patch your own. Without this, things break
Set VimDevIcons to load after these plugins!
NERDTree | vim-airline | CtrlP | powerline | Denite | unite | lightline.vim | vim-startify | vimfiler | flagship
Choose your favorite plugin manager
git clone https://github.com/ryanoasis/vim-devicons ~/.vim/bundle/vim-devicons
-
Add to vimrc:
NeoBundle 'ryanoasis/vim-devicons'
-
And install it:
:so ~/.vimrc :NeoBundleInstall
-
Add to vimrc:
Plugin 'ryanoasis/vim-devicons'
-
And install it:
:so ~/.vimrc :PluginInstall
-
Add to your
call plug#begin...call plug#end()
:Plug 'ryanoasis/vim-devicons'
-
And install it:
:so ~/.vimrc :PlugInstall
- copy all of the files into your
~/.vim
directory
Add the following in your .vimrc
or .gvimrc
:
Set encoding to UTF-8 to show glyphs
set encoding=utf8
Set Vim font to a Nerd Font
Linux
set guifont=<FONT_NAME> <FONT_SIZE>
set guifont=DroidSansMono\ Nerd\ Font\ 11
macOS (OS X) and Windows
set guifont=<FONT_NAME>:h<FONT_SIZE>
set guifont=DroidSansMono\ Nerd\ Font:h11
" or:
set guifont=DroidSansMono_Nerd_Font:h11
Note: if you don't set guifont
then you'll have to set your terminal's
font, else things break!
If you use vim-airline you need this:
let g:airline_powerline_fonts = 1