Last active
June 9, 2016 16:00
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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
Inspiration, references and things to look at