[vim] add nvim config

This commit is contained in:
Simon Bruder 2019-06-08 22:23:36 +00:00
parent 5045087c4f
commit e28b57ffc0
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 12 additions and 7 deletions

View file

@ -0,0 +1,3 @@
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

View file

@ -3,8 +3,8 @@ au BufRead,BufNewFile *.scad setfiletype openscad
" Set properties
autocmd Filetype arduino setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype cpp setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype c setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype cpp setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype css setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype dart setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype dockerfile setlocal ts=4 sw=4 sts=4 expandtab
@ -25,11 +25,12 @@ autocmd Filetype php setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype python setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype scss setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype sh setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype zsh setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype svg setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype tex setlocal ts=1 sw=1 sts=1 expandtab
autocmd Filetype tf setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype toml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype vim setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype vue setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype xml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype yaml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype zsh setlocal ts=4 sw=4 sts=4 expandtab

View file

@ -22,11 +22,12 @@ filetype plugin indent on
""" END VUNDLE
" statusline
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
set laststatus=2 " always show powerline
if !has('nvim')
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup
set laststatus=2 " always show powerline
endif
" line numbers
set number