" 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 " Report all line yanks set report=0 " 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 au BufNewFile,BufRead /tmp/reportbug-* 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 CMakeLists.txt setlocal filetype=cmake 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 " Disable bell set visualbell set t_vb= " Disable mouse set mouse= " Show (partial) command in status line set showcmd