diff options
author | Franck Cuny <franck@lumberjaph.net> | 2015-07-06 11:46:36 -0700 |
---|---|---|
committer | Franck Cuny <franck@lumberjaph.net> | 2015-07-06 11:46:36 -0700 |
commit | 3d10fafdfc888b43d91aebf45cb6022f4f3c3203 (patch) | |
tree | 61bd8c8475beaa5f86f2e78d1e4d3b7ea625eb84 /vimrc | |
parent | create repository (diff) | |
download | emacs.d-3d10fafdfc888b43d91aebf45cb6022f4f3c3203.tar.gz |
configuration files
Diffstat (limited to '')
-rw-r--r-- | vimrc | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..8627b27 --- /dev/null +++ b/vimrc @@ -0,0 +1,55 @@ +syn off +set nocompatible +let mapleader="," +filetype indent plugin on +set autoread +set nojoinspaces +set list lcs=trail:·,tab:»· +set hlsearch +set incsearch +set ignorecase +set showmatch +set matchtime=1 +set encoding=utf-8 +set winminheight=0 +set hidden " allows files to be open in invisible buffers +set wildmenu +set wildmode=full +set smartcase + +" seriously, no backup +set nobackup +set nowritebackup +set noswapfile + +set expandtab +set tabstop=2 +set shiftwidth=2 +set softtabstop=2 +set textwidth=80 +set smarttab +set autoindent +set nocindent + +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() + +au BufRead,BufNewFile *.json setlocal filetype=javascript +au BufRead,BufNewFile *.md setlocal filetype=markdown +au BufRead,BufNewFile *.mesos setlocal filetype=python +au BufRead,BufNewFile *.aurora setlocal filetype=python +au BufRead,BufNewFile BUILD setlocal filetype=python +au BufRead,BufNewFile *.pp setlocal filetype=ruby +au BufRead,BufNewFile *.alert setlocal filetype=yaml +au BufRead,BufNewFile *.go setlocal filetype=go + +au FileType python setlocal keywordprg=pydoc shiftwidth=2 softtabstop=2 tabstop=2 tw=100 +au FileType make setlocal shiftwidth=8 tabstop=8 noexpandtab +au FileType markdown setlocal tw=100 +au FileType sh setlocal shiftwidth=2 softtabstop=2 tabstop=2 tw=80 +au FileType go setlocal tw=101 noexpandtab tabstop=4 shiftwidth=4 nolist |