Last active
June 29, 2018 21:59
-
-
Save novelistparty/432c0adf5e46968d8ad36bd23fd10c2f to your computer and use it in GitHub Desktop.
small vimrc for quick setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use Vim settings, rather than Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" Make backspace behave in a sane manner. | |
set backspace=indent,eol,start | |
" Switch syntax highlighting on | |
syntax on | |
" show location of cursor using a horizontal line | |
set cursorline | |
" line numbers | |
set number | |
" highlight search results | |
set hlsearch | |
" show matching brackets when text indicator is over them | |
set showmatch | |
" always show status line | |
set laststatus=2 | |
" Enable file type detection and do language-dependent indenting. | |
filetype plugin indent on | |
set encoding=utf8 | |
" Text, tab, and indent settings | |
set autoindent cindent | |
set expandtab " use spaces instead of tabs | |
set shiftwidth=4 " 1 tab == 4 spaces | |
set tabstop=4 " 1 tab == 4 spaces | |
set smarttab | |
set wrap " soft-wrap lines. Move up/down into wrapped lines with "gj" and "gk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment