Skip to content

Instantly share code, notes, and snippets.

@krnd
Last active July 3, 2021 08:54
Show Gist options
  • Save krnd/acf5b87ccbffe973cf2fe31e001222b6 to your computer and use it in GitHub Desktop.
Save krnd/acf5b87ccbffe973cf2fe31e001222b6 to your computer and use it in GitHub Desktop.
vim-vimrc
" .vimrc
"
" AUTHOR
" krnd
"
" VERSION
" 1.2
"
" SEE ALSO
" http://vimdoc.sourceforge.net/htmldoc/options.html
" https://gist.github.com/krnd
"
""""""""""""""""""" STATUS """""""""""""""""""""""""""""""""
" When on, lines longer than the width of the window will wrap and
" displaying continues on the next line. When off lines will not wrap
" and only part of long lines will be displayed.
set nowrap
" Ring the bell (beep or screen flash) for error messages.
set noerrorbells
" Use visual bell instead of beeping.
set novisualbell
" Print the line number in front of each line.
set number
" Show the line and column number of the cursor position, separated by a
" comma.
set ruler
" In Insert mode: Use the appropriate number of spaces to insert a
" <Tab>. Spaces are used in indents with the '>' and '<' commands and
" when 'autoindent' is on. To insert a real tab when 'expandtab' is
" on, use CTRL-V<Tab>.
set expandtab
" Number of spaces that a <Tab> in the file counts for.
set tabstop=4
" Number of spaces that a <Tab> counts for while performing editing
" operations, like inserting a <Tab> or using <BS>.
set softtabstop=4
" Number of spaces to use for each step of (auto)indent.
set shiftwidth=4
" Copy indent from current line when starting a new line (typing <CR>
" in Insert mode or when using the "o" or "O" command).
set autoindent
" Highlight the screen line of the cursor with CursorLine
" |hl-CursorLine|.
set cursorline
" When a bracket is inserted, briefly jump to the matching one.
set showmatch
" When there is a previous search pattern, highlight all its matches.
set hlsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment