summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-08-18 15:46:25 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-08-18 15:46:25 +0530
commit0f0d11706a33beb2b3f04691f9456a10d6baaa97 (patch)
tree705a80a20def6b6271c9c32dce5efb73538e9524 /.vimrc
parent242200c295fdf6483d75a17ff7bf43491079d066 (diff)
vimrc addition no plugins only inbuilt functions
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc34
1 files changed, 34 insertions, 0 deletions
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