Skip to content

Instantly share code, notes, and snippets.

@gabeio
Last active December 23, 2017 06:03
Show Gist options
  • Save gabeio/9bd828e2fa859e390007 to your computer and use it in GitHub Desktop.
Save gabeio/9bd828e2fa859e390007 to your computer and use it in GitHub Desktop.
Default Vim Settings
syntax on
"execute pathogen#infect() "optional
set nocompatible
set backspace=2
set ignorecase
set smartcase
set autoindent
set number "show line numbers
set ruler "show ruler
set relativenumber "show relative line numbers
set noexpandtab "don't change a tab to spaces
match ErrorMsg '\%>120v.\+' "error highlight long lines
match ErrorMsg '\s\+$' "error highlight spaces at the end of a line
map q <Nop> "stop fumbling with recording plugin
autocmd Filetype gitcommit setlocal spell textwidth=50 "auto wrap git commit lines to 50 characters
"fix incorrect join lines
if v:version > 703 || v:version == 703 && has('patch541')
set formatoptions+=j
endif
@gabeio
Copy link
Author

gabeio commented Dec 23, 2017

@gabeio
Copy link
Author

gabeio commented Dec 23, 2017

@gabeio
Copy link
Author

gabeio commented Dec 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment