commit 90fdd44333cf21cc041b4bb5f95a24635b8c90e8 Author: Zev B Averbach Date: Tue Oct 5 22:10:35 2021 +0200 first diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..3eeadf8 --- /dev/null +++ b/vimrc @@ -0,0 +1,30 @@ +set nocompatible +set history + +set relativenumber +" four-space tabs +filetype plugin indent on +setlocal shiftwidth=2 softtabstop=2 expandtab +au FileType python setl shiftwidth=4 tabstop=4 + +" ctrl-s for save +nnoremap :w +" save and close +nnoremap w :w:bw + +" buffer nav +nnoremap :bp +nnoremap :bn + + +let mapleader = "\" + +" quickly source vimrc with + s +nnoremap s :source ~/.vimrc + +" prevent the 'no write since last change' message when changing buffers +set hidden +call plug#begin('~/.vim/plugged') + Plug 'folke/tokyonight.nvim', { 'branch': 'main' } +call plug#end() +colorscheme tokyonight