Skip to content

Instantly share code, notes, and snippets.

@c33k
Last active March 18, 2020 09:02
Show Gist options
  • Save c33k/c2b1bebd68e831ef7645ea73065f09c5 to your computer and use it in GitHub Desktop.
Save c33k/c2b1bebd68e831ef7645ea73065f09c5 to your computer and use it in GitHub Desktop.
"First, install: dein and NerdTree
if &compatible
set nocompatible
endif
" Add the dein installation directory into runtimepath
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
call dein#add('Shougo/deoplete.nvim')
if !has('nvim')
call dein#add('roxma/nvim-yarp')
call dein#add('roxma/vim-hug-neovim-rpc')
endif
call dein#end()
call dein#save_state()
endif
filetype plugin indent on
syntax enable
set laststatus=2
set statusline=
set statusline+=%#function#\ %l
set statusline+=\ %*
set statusline+=\ ‹‹
set statusline+=\ %f\ %*
set statusline+=\ ››
set statusline+=\ %m
set statusline+=%#keyword#\ %F
set statusline+=%=
set statusline+=\ ‹‹
set statusline+=\ %{strftime('%R',getftime(expand('%')))}
set statusline+=\ ::
set statusline+=\ %n
set statusline+=\ ››\ %*
" TAB COLORS
hi TabLineFill ctermfg=LightBlue ctermbg=DarkBlue
hi TabLine ctermfg=Black ctermbg=White
hi TabLineSel ctermfg=LightBlue ctermbg=Black
" EDITOR GENERAL CONFIGS
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" styling a red column for 80 characters and add line numbers
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
set colorcolumn=80
set number
" Starting NerdTREE automatically when no file is open
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment