Files
dotfiles/init.vim

49 lines
1.3 KiB
VimL

set relativenumber
set autoindent
set termguicolors
set cursorline
set ts=4 sw=4
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'gilgigilgil/anderson.vim'
Plug 'sainnhe/sonokai'
Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }
Plug 'bfrg/vim-cpp-modern'
call plug#end()
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
" Start NERDTree. If a file is specified, move the cursor to its window.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
let g:NERDTreeGitStatusWithFlags = 1
"let g:WebDevIconsUnicodeDecorateFolderNodes = 1
"let g:NERDTreeGitStatusNodeColorization = 1
"let g:NERDTreeColorMapCustom = {
"\ "Staged" : "#0ee375",
"\ "Modified" : "#d9bf91",
"\ "Renamed" : "#51C9FC",
"\ "Untracked" : "#FCE77C",
"\ "Unmerged" : "#FC51E6",
"\ "Dirty" : "#FFBD61",
"\ "Clean" : "#87939A",
"\ "Ignored" : "#808080"
"\ }
let g:NERDTreeIgnore = ['^node_modules$']
let g:airline_powerline_fonts = 1
let g:sonokai_style = 'shusia'
let g:sonokai_better_performance = 1
colorscheme sonokai