Skip to content

Instantly share code, notes, and snippets.

@jgworks
Created April 26, 2017 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgworks/0a347caab25ac6a861a3c4f37bdd11af to your computer and use it in GitHub Desktop.
Save jgworks/0a347caab25ac6a861a3c4f37bdd11af to your computer and use it in GitHub Desktop.
.vimrc
"set expandtab
"set shiftwidth=4
"set softtabstop=4
let mapleader = ','
set incsearch ignorecase hlsearch
" Press space to clear search highlighting and any message already displayed.
nnoremap <silent> <Space> :silent noh<Bar>echo<CR>
" set autochdir " always switch to the current file directory
set backspace=indent,eol,start " make backspace a more flexible
set backup " make backup files
" mkdir -p ~/.vim/backup ~/.vim/tmp
set backupdir=~/.vim/backup " where to put backup files
set directory=~/.vim/tmp " directory to place swap files in
set fileformats=unix,dos,mac " support all three, in this order
" (XXX: #VIM/tpope warns the line below could break things)
set iskeyword+=_,$,@,%,# " none of these are word dividers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment