diff options
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 |