tiagofumo / vim-nerdtree-syntax-highlight

Extra syntax and highlight for nerdtree files
GNU General Public License v3.0
774 stars 42 forks source link

Icons are not displayed #20

Closed TimoPurzner closed 4 years ago

TimoPurzner commented 6 years ago

I guess I missed something… maybe you can help me.

I installed the nerd fonts with brew tap caskroom/fonts brew cask install font-hack-nerd-font

bildschirmfoto 2018-04-01 um 13 37 20
**My vimrc:**
" Don't try to be vi compatible
set nocompatible

" Helps force plugins to load correctly when it is turned back on below
filetype off

" TODO: Load plugins here (pathogen or vundle)
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif

if &compatible
  set nocompatible               " Be iMproved
endif

" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/

" Required:
call neobundle#begin(expand('~/.vim/bundle/'))

" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'

" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!
NeoBundle 'ryanoasis/vim-devicons'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'tiagofumo/vim-nerdtree-syntax-highlight'

call neobundle#end()

" Required:
filetype plugin indent on

" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck

" =========================================================
" Stuff for Plugins

" Open on current folder with vim not vim .
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif

autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif

" open file explorer on open vim
autocmd vimenter * NERDTree

" Close vim if only the file explorer is open
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

let g:NERDTreeHighlightCursorline = 0

" ======================================================
" Turn on syntax highlighting
syntax on

" For plugins to load correctly
filetype plugin indent on

" TODO: Pick a leader key
" let mapleader = ","

" Security
set modelines=0

" Show line numbers
set number

" Show file stats
set ruler

" Blink cursor on error instead of beeping (grr)
set visualbell

" Encoding
set encoding=utf-8

" Whitespace
set wrap
set textwidth=79
set formatoptions=tcqrn1
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set noshiftround

" Cursor motion
set scrolloff=3
set backspace=indent,eol,start
set matchpairs+=<:> " use % to jump between pairs
runtime! macros/matchit.vim

" Move up/down editor lines
nnoremap j gj
nnoremap k gk

" Allow hidden buffers
set hidden

" Rendering
set ttyfast

" Status bar
set laststatus=2

" Last line
set showmode
set showcmd

" Searching
nnoremap / /\v
vnoremap / /\v
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmatch
map <leader><space> :let @/=''<cr> " clear search

" Remap help key.
inoremap <F1> <ESC>:set invfullscreen<CR>a
nnoremap <F1> :set invfullscreen<CR>
vnoremap <F1> :set invfullscreen<CR>

" Textmate holdouts

" Formatting
map <leader>q gqip

" Visualize tabs and newlines
set listchars=tab:▸\ ,eol:¬
" Uncomment this to enable by default:
" set list " To enable by default
" Or use your leader key + l to toggle on/off
map <leader>l :set list!<CR> " Toggle tabs and EOL
skywhat commented 5 years ago

same issue here, how did u solve it

skywhat commented 5 years ago

I just changed the Fonts into Nerd for my terminal on the preferences. Then it works

teffy commented 5 years ago

@skywhat Hi, I have the same issue on my mac, how to change the Fonts into Nerd for the terminal ?

TimoPurzner commented 5 years ago

@skywhat this fixed it for me too thanks a lot :) @teffy Open a Terminal and in the left top corner next to the apple symbol, click on terminal --> preferences. In the new windows go to Profile there you can change the font! Maybe you have to install the font before

tiagofumo commented 4 years ago

Hi, sorry for the long response time. As it seems this is related to uncofigured nerd-fonts I am closing this issue.