Skip to content

Instantly share code, notes, and snippets.

@vishalkg
Created September 7, 2022 17:40
Show Gist options
  • Save vishalkg/f943b3a967a7d54d74e87226d877ed21 to your computer and use it in GitHub Desktop.
Save vishalkg/f943b3a967a7d54d74e87226d877ed21 to your computer and use it in GitHub Desktop.
" **NEVER PUT ANY LINE IN YOUR VIMRC WHICH YOU DON'T UNDERSTAND**
set nocompatible
" Enabling filetype support provides filetype-specific indenting,
" syntax highlighting, omni-completion and other useful settings.
filetype plugin indent on
syntax on
" `matchit.vim` is built-in so let's enagate between tabs using mouseble it!
" Hit `%` on `if` to jump to `else`.
runtime macros/matchit.vim
" various settings
set autoindent " Minimal automatic indenting for any filetype.
set backspace=indent,eol,start " Intuitive backspace behavior.
set hidden " Possibility to have more than one unsaved buffers.
set incsearch " Incremental search, hit `<CR>` to stop.
set ruler " Shows the current line number at the bottom-right
" of the screen.
set wildmenu " Great command-line completion, use `<Tab>` to move
" around and `<CR>` to validate.
set number " Set line number
set cursorline " Underlines the current line
set mouse=a " navigate between tabs using mouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment