diff options
author | Jordan <me@jordan.im> | 2020-11-09 08:59:41 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2020-11-09 08:59:41 -0700 |
commit | f098b47a257f4bf71e83a5fb5d92583da1be763f (patch) | |
tree | 6f66f1eee099d243177844194ee6ac9365f11948 /.vimrc | |
download | dotfiles-f098b47a257f4bf71e83a5fb5d92583da1be763f.tar.gz dotfiles-f098b47a257f4bf71e83a5fb5d92583da1be763f.zip |
initial commit
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +syntax on +colo industry +set number +set mouse-=a +set backspace=indent,eol,start +set wildmode=longest:full,full +filetype plugin indent on +set tabstop=4 +set shiftwidth=4 +set expandtab +set autoindent +set breakindent +set formatoptions=t1 +set lbr +"set viminfo='100,<1000,s100,h +set viminfo='20,<100000 + +" highlight stray spaces and tabs when out of insert mode +highlight ExtraWhitespace ctermbg=red guibg=red +match ExtraWhitespace /\s\+$/ +autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ +autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ +autocmd InsertLeave * match ExtraWhitespace /\s\+$/ +autocmd BufWinLeave * call clearmatches() +autocmd FileType go setlocal noet ts=4 sw=4 +autocmd FileType markdown setlocal tw=80 et ts=2 sw=2 +autocmd FileType python setlocal et ts=4 sw=4 +autocmd FileType text setlocal tw=80 +autocmd FileType html setlocal et ts=2 sw=2 +autocmd FileType c setlocal noet ts=8 sw=8 tw=80 +autocmd FileType h setlocal noet ts=8 sw=8 tw=80 +autocmd FileType cpp setlocal noet ts=8 sw=8 tw=80 |