Add basic vim config

This commit is contained in:
fanyx 2021-10-20 01:58:24 +02:00
parent 47835f39fe
commit c51169b2ee
2 changed files with 60 additions and 0 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

57
.vimrc Normal file
View File

@ -0,0 +1,57 @@
" Numbers
set number
set relativenumber
" Indentation
set autoindent
" set filetype indent on
" Tab width
set expandtab
set smarttab
set tabstop=4
set shiftwidth=4
set shiftround
" Search
set hlsearch
set ignorecase
set incsearch
set smartcase
" Performance
set complete-=i
set lazyredraw
" Rendering
set display+=lastline
set encoding=utf-8
set linebreak
set scrolloff=3
set sidescrolloff=5
set wrap
syntax on
" Interface
set laststatus=2
set wildmenu
set tabpagemax=50
set noerrorbells
set visualbell
set mouse=a
set title
" Folding
set foldmethod=indent
set foldnestmax=3
set nofoldenable
set autoread
set backspace=indent,eol,start
set confirm
set formatoptions+=j
set nomodeline
set noswapfile
set nrformats-=octal
set shell
set wildignore+=.pyc,.swp