diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-03-05 01:25:00 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-03-05 01:52:07 (EST) |
commit | 1b40af59fd6f668fdaa1c73c8ab5d1507bda2eef (patch) | |
tree | 04d07ad0f9e8ef3c029326ee824dfd26b433ca26 /.vimrc | |
download | vim-1b40af59fd6f668fdaa1c73c8ab5d1507bda2eef.zip vim-1b40af59fd6f668fdaa1c73c8ab5d1507bda2eef.tar.gz vim-1b40af59fd6f668fdaa1c73c8ab5d1507bda2eef.tar.bz2 |
Initial commit
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 52 |
1 files changed, 52 insertions, 0 deletions
@@ -0,0 +1,52 @@ +" Hide intro message +set shortmess+=I + +" Don't pause after leaving insert mode +set timeoutlen=0 + +" Show line and column ruler at bottom right +set ruler + +" Show line numbers +set number + +" Tabs are 8 spaces +set tabstop=8 +set shiftwidth=8 + +" Set line length and warning column +set textwidth=80 +au BufNewFile,BufRead COMMIT_EDITMSG set textwidth=72 +if &textwidth != 0 + set colorcolumn=+1 +endif + +" Make tabs and trailing spaces visible +set list +set listchars=tab:>\ ,trail:~ + +" Set file types based on file names +autocmd BufNewFile,BufRead README,TODO setf markdown +autocmd BufNewFile,BufRead *.txt setf markdown +autocmd BufNewFile,BufRead *.mdwn setf ikiwiki +autocmd BufNewFile,BufRead ChangeLog setf changelog +autocmd BufNewFile,BufRead changelog setf debchangelog +autocmd BufNewFile,BufRead *.esh setf sh + +" Shell scripts are POSIX-compliant +let g:is_posix = 1 + +" Highlight ikiwiki syntax in markdown syntax +let g:ikiwiki_render_filetype = 'markdown' + +" Enable syntax highlighting +if &t_Co > 1 + syntax enable + colorscheme pehjota +endif + +" Automatically indent lines +filetype plugin indent on + +" Display command-line completion matches +set wildmenu |