[vim] add nvim config
This commit is contained in:
parent
5045087c4f
commit
e28b57ffc0
3
home/.config/nvim/init.vim
Normal file
3
home/.config/nvim/init.vim
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
||||||
|
let &packpath = &runtimepath
|
||||||
|
source ~/.vimrc
|
|
@ -3,8 +3,8 @@ au BufRead,BufNewFile *.scad setfiletype openscad
|
||||||
|
|
||||||
" Set properties
|
" Set properties
|
||||||
autocmd Filetype arduino setlocal ts=2 sw=2 sts=2 expandtab
|
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 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 css setlocal ts=2 sw=2 sts=2 expandtab
|
||||||
autocmd Filetype dart 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
|
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 python setlocal ts=4 sw=4 sts=4 expandtab
|
||||||
autocmd Filetype scss setlocal ts=2 sw=2 sts=2 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 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 svg setlocal ts=2 sw=2 sts=2 expandtab
|
||||||
autocmd Filetype tex setlocal ts=1 sw=1 sts=1 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 tf setlocal ts=2 sw=2 sts=2 expandtab
|
||||||
autocmd Filetype toml 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 vue setlocal ts=2 sw=2 sts=2 expandtab
|
||||||
autocmd Filetype xml 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 yaml setlocal ts=2 sw=2 sts=2 expandtab
|
||||||
|
autocmd Filetype zsh setlocal ts=4 sw=4 sts=4 expandtab
|
||||||
|
|
11
home/.vimrc
11
home/.vimrc
|
@ -22,11 +22,12 @@ filetype plugin indent on
|
||||||
""" END VUNDLE
|
""" END VUNDLE
|
||||||
|
|
||||||
" statusline
|
" statusline
|
||||||
python3 from powerline.vim import setup as powerline_setup
|
if !has('nvim')
|
||||||
python3 powerline_setup()
|
python3 from powerline.vim import setup as powerline_setup
|
||||||
python3 del powerline_setup
|
python3 powerline_setup()
|
||||||
set laststatus=2 " always show powerline
|
python3 del powerline_setup
|
||||||
|
set laststatus=2 " always show powerline
|
||||||
|
endif
|
||||||
|
|
||||||
" line numbers
|
" line numbers
|
||||||
set number
|
set number
|
||||||
|
|
Reference in a new issue