From 20b7e8e9bf075d1ba039f00c336274fc3f06dfd2 Mon Sep 17 00:00:00 2001 From: infogulch Date: Fri, 21 May 2021 15:39:13 -0500 Subject: [PATCH] Add .vimrc --- .gitignore | 2 ++ .vimrc | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .vimrc diff --git a/.gitignore b/.gitignore index ceb37e4..a078703 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,7 @@ !.aliases !.exports !.functions + +!.vimrc !.bashrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..57c2614 --- /dev/null +++ b/.vimrc @@ -0,0 +1,30 @@ +set nocompatible +filetype plugin indent on +set nofoldenable +set foldmethod=syntax +set foldnestmax=1 +au FileType sh let g:sh_fold_enabled=1 +au FileType sh let g:is_bash=1 +au FileType sh set foldmethod=syntax +syntax on + +set number " Show line numbers +set showmatch " Highlight matching brace +set visualbell " Use visual bell (no beeping) + +set hlsearch " Highlight all search results +set smartcase " Enable smart-case search +set ignorecase " Always case-insensitive +set incsearch " Searches for strings incrementally + +set autoindent " Auto-indent new lines +"set shiftwidth=4 " Number of auto-indent spaces +"set smartindent " Enable smart-indent +set smarttab " Enable smart-tabs +set softtabstop=4 " Number of spaces per Tab + +set ruler " Show row and column ruler information + +set undolevels=1000 " Number of undo levels +set backspace=indent,eol,start " Backspace behaviour +