From c51169b2ee38a94ebd244ad8289c39870a10005f Mon Sep 17 00:00:00 2001 From: fanyx Date: Wed, 20 Oct 2021 01:58:24 +0200 Subject: [PATCH] Add basic vim config --- .config/nvim/init.vim | 3 +++ .vimrc | 57 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .config/nvim/init.vim create mode 100644 .vimrc diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..b42c8d9 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,3 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath=&runtimepath +source ~/.vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..e8f4484 --- /dev/null +++ b/.vimrc @@ -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