Last active
December 23, 2017 06:03
-
-
Save gabeio/9bd828e2fa859e390007 to your computer and use it in GitHub Desktop.
Default Vim Settings
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://sanctum.geek.nz/arabesque/vim-anti-patterns/