Skip to content

Instantly share code, notes, and snippets.

@bodokaiser
Last active March 18, 2017 12:30
Show Gist options
  • Save bodokaiser/7bbbf40c11984d2c0d0242acd76b6828 to your computer and use it in GitHub Desktop.
Save bodokaiser/7bbbf40c11984d2c0d0242acd76b6828 to your computer and use it in GitHub Desktop.
Neovim config
set nocompatible
syntax on
filetype off
set termguicolors
set novisualbell
set nobackup
set noswapfile
set number
set list
set expandtab
set tabstop=4
set shiftwidth=4
set smartindent
set colorcolumn=80
set listchars=nbsp:¬,eol:¶,tab:>-,extends:»,precedes:«,trail:
call plug#begin('~/.config/nvim/plugged')
" languages
Plug 'othree/html5.vim'
Plug 'lervag/vimtex'
Plug 'davidhalter/jedi-vim'
" extensions
Plug 'valloric/youcompleteme'
Plug 'vim-syntastic/syntastic'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
" colorschemes
Plug 'flazz/vim-colorschemes'
Plug 'xolox/vim-colorscheme-switcher'
Plug 'xolox/vim-misc'
Plug 'jeffkreeftmeijer/vim-dim'
call plug#end()
let g:syntastic_check_on_wq=0
let g:syntastic_enable_signs=1
let g:syntastic_java_checkers=[]
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#syntastic#enabled=1
let g:pymode_python = 'python3'
let g:python_host_prog = '/Users/bodokaiser/.pyenv/versions/neovim3/bin/python'
let g:python3_host_prog = '/Users/bodokaiser/.pyenv/versions/neovim3/bin/python'
let g:ycm_python_binary_path = '/Users/bodokaiser/.pyenv/versions/neovim3/bin/python'
filetype plugin on
filetype indent on
colorscheme tomorrow-night-eighties
autocmd FileType go,make
\ setlocal noexpandtab
autocmd FileType ruby,html,json,jade,javascript
\ setlocal tabstop=2 |
\ setlocal shiftwidth=2
autocmd FileType css
\ setlocal tabstop=4 |
\ setlocal shiftwidth=4
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
autocmd BufRead,BufNewFile *.html.*
\ setlocal filetype=html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment