From 0f0d11706a33beb2b3f04691f9456a10d6baaa97 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Thu, 18 Aug 2022 15:46:25 +0530 Subject: vimrc addition no plugins only inbuilt functions --- .vimrc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .vimrc (limited to '.vimrc') diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..5d82303 --- /dev/null +++ b/.vimrc @@ -0,0 +1,34 @@ +"General +syntax on +set number " Show absolute line numbers +set relativenumber " Show relative line numbers +"together show they show hybrid line numbers +set showbreak=+++ " Wrap-broken line prefix +set textwidth=100 " Line wrap (number of cols) + +set showmatch " Highlight matching brace +set hlsearch " Highlight all search results +set smartcase " Enable smart-case search +set gdefault " Always substitute all matches in a line +set ignorecase " Always case-insensitive +set incsearch " Searches for strings incrementally + +set autoindent " Auto-indent new lines +set cindent " Use 'C' style program indenting +set expandtab " Use spaces instead of tabs +set smartindent " Enable smart-indent +set smarttab " Enable smart-tabs +set softtabstop=4 " Number of spaces per Tab +set shiftwidth=4 " Number of auto-indent spaces +set scrolloff=7 + +"" Advanced +set ruler " Show row and column ruler information + +set undolevels=1000 " Number of undo levels + + +if has('persistent_undo') "check if your vim version supports + set undodir=$HOME/.vim/undo "directory where the undo files will be stored + set undofile "turn on the feature +endif -- cgit v1.2.3