From 8d4b035e2bf1d93f6514be0ed8d81fb118126e4c Mon Sep 17 00:00:00 2001 From: jozamudi Date: Mon, 10 Jun 2024 08:15:01 -0700 Subject: [PATCH] add simple vimrc --- .vimrc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..fecc855 --- /dev/null +++ b/.vimrc @@ -0,0 +1,34 @@ +set nocompatible +syntax on +filetype plugin on + +set path+=** +set wildmenu +set wildignore+=*/tmp/*,*.so,*.swp,*.zip +set wildignore+=*\\tmp\\*,*.exe + +set number +set number ruler +set showmatch +set ruler +set wrap +set showbreak=↳\ \ +set textwidth=79 +set colorcolumn=81 + +" Show bad whitespace in an obvious but not obnoxious color +highlight pythonSpaceError ctermbg=darkgreen guibg=darkgreen +highlight BadWhitespace ctermbg=darkgreen guibg=darkgreen +au BufNewFile,BufRead *.py,*.pyw,*.c,*.h,*.cc,*.hh,*.sh match BadWhitespace /\s\+$/ + +" File settings +au FileType * + \ set tabstop=2 + \ softtabstop=2 + \ shiftwidth=2 + \ textwidth=79 + \ expandtab + \ autoindent + \ smartindent + +