Skip to content

Instantly share code, notes, and snippets.

@alexkuhl
Last active May 4, 2018 14:48
Show Gist options
  • Save alexkuhl/9b7c803da7b82288b45d to your computer and use it in GitHub Desktop.
Save alexkuhl/9b7c803da7b82288b45d to your computer and use it in GitHub Desktop.
Linux dot files
"+++[[[indentation]]]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set expandtab " use spaces when <TAB> is inserted
set shiftwidth=2 " number of spaces to use for (auto)indent step
set tabstop=2 " number of spaces that <Tab> in file uses
set autoindent " indent as last
"+++[[[search]]]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set hlsearch " Highlight all found items
set incsearch " Show first match while still typing
"+++[[[misc. settings]]]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
"set autowrite " save file on :ne, :re, :make and friends
"set bs=2 " allow backspacing over everything in insert mode
"set history=50 " Keep N lines of command history
set laststatus=2 " Show status bar at all times
"set nojoinspaces " One space between joined text, not two
set ruler " show the cursor position all the time
set showbreak=..w.. " Show symbol to indicate wrapped line
set wrap " Wrap text to screen
"set linebreak " wrap long lines at a blank
set background=dark " For dark consoles, critical to make comments readable (e.g. green text on black)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment