improved vim config

This commit is contained in:
Niklas 2021-02-17 17:52:47 +01:00
parent 57c17f4782
commit 826991ff92

View File

@ -14,12 +14,27 @@
" Set color for dark backgrounds " Set color for dark backgrounds
:set background=dark :set background=dark
" Line number
:set number
" tabstop " tabstop
set tabstop=4 set tabstop=4
set shiftwidth=4 set shiftwidth=4
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
call plug#begin('~/.config/nvim/plugged') call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'vim-airline/vim-airline'
call plug#end() call plug#end()
nnoremap <C-b> :NERDTreeToggle<CR>