Skip to content

Instantly share code, notes, and snippets.

@noxan
Last active June 9, 2016 16:00
Show Gist options
  • Save noxan/e00ab9e2c79d673e12bba7eb85357f7f to your computer and use it in GitHub Desktop.
Save noxan/e00ab9e2c79d673e12bba7eb85357f7f to your computer and use it in GitHub Desktop.
building a nvim config from scratch again (vim config felt bloated once again)
" Plugins
call plug#begin('~/.vim/plugged')
" Better js hightlight
Plug 'pangloss/vim-javascript', { 'branch': 'es6-refactor', 'for': 'javascript' }
" Oceanic next color scheme
Plug 'mhartington/oceanic-next'
" Ctrl-P to find files like in sublime
Plug 'kien/ctrlp.vim'
" Airline, the better status line
Plug 'bling/vim-airline'
call plug#end()
" Syntax enabled
syntax enable
" Color scheme
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
colorscheme OceanicNext
set background=dark
" Line numbers (on the left side)
set number
" Matching brackets
set showmatch
" Line and column numbers in status line
set ruler
" Start scrolling before reaching the end (horizontal and vertical)
set scrolloff=5
set sidescrolloff=5
" Insert spaces instead of tab characters
set expandtab
" Length of one tab in spaces
set tabstop=2
" Indention amount for < and > commands
set shiftwidth=2
" Display trailing and other possible dangerous whitespaces or special characters
set listchars=tab:»\ ,trail:~,extends:>,precedes:<,nbsp:+
set list
" This is excessive mode for whitespace highlighting, useful for debugging
"set listchars=eol:¬,tab:»·,trail:~,extends:>,precedes:<,space:␣
" Highlight trailing whitespaces with a red background in addition
highlight ExtraWhitespace ctermbg=darkred guibg=darkred
match ExtraWhitespace /\s\+$\|\t/
" Airline
let g:airline_left_sep='' " Slightly fancier than '>'
let g:airline_right_sep='' " Slightly fancier than '<'
let g:airline_theme='oceanicnext'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment