.vimrc: Source vimrc from Neovim config

This commit is contained in:
2019-11-03 14:40:33 +01:00
parent 84381b084a
commit 31c86dda7d
2 changed files with 7 additions and 1 deletions

3
.config/nvim/init.vim Normal file
View File

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

5
.vimrc
View File

@@ -41,7 +41,10 @@ syntax on
"
" Set the filetype based on the file's extension, but only if
" 'filetype' has not already been set
au BufRead,BufNewFile *.config setfiletype conf
augroup filetypedetect
au BufRead,BufNewFile .i3initrc set filetype=sh
au BufRead,BufNewFile *.config setfiletype conf
augroup END
set tabstop=4 " show existing tab with 4 spaces width
set shiftwidth=4 " when indenting with '>', use 4 spaces width