set columns=100
set lines=53
-set guifont=Hack\ 9,Liberation\ Mono\ for\ Powerline\ 10,DejaVu\ Sans\ Mono\ 10,Monospace\ 10
+set guifont=Hack\ NF\ 9,Hack\ 9,Liberation\ Mono\ for\ Powerline\ 10,DejaVu\ Sans\ Mono\ 10,Monospace\ 10
set mousehide
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Some global plugin settings
+" Enable loading of devicons
+let g:enable_plugin_devicons = 1
+
runtime plugsetup.vim
" Attention: Must be run after plugsetup.vim
check_prog()
{
if which "$1" > /dev/null; then
- echo "$1 found"
+ echo "$1 found."
else
echo "$1 not found. Aborting."
exit
fi
}
+check_font()
+{
+ if fc-list | grep -q "$1"; then
+ echo "Font $1 found."
+ else
+ echo "Font $1 not found. Either install it or clear g:enable_plugin_devicons."
+ exit
+ fi
+}
+
check_requirements()
{
check_prog aspell
check_prog git
check_vim +python3
check_py3 neovim
+ check_font "Hack NF"
}
backup() {
+function! Cond(cond, ...)
+ let opts = get(a:000, 0, {})
+ return a:cond ? opts : extend(opts, { 'on': [], 'for': [] })
+endfunction
+
Plug 'mhinz/vim-startify'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
Plug 'Xuyuanp/nerdtree-git-plugin', {'on': 'NERDTreeToggle'}
+Plug 'ryanoasis/vim-devicons', Cond(g:enable_plugin_devicons)
+
Plug 'neomake/neomake'
Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'}