X-Git-Url: https://code.kerkeslager.com/?a=blobdiff_plain;f=.vimrc;h=dd1d9bd0820de0e667f94604e20fed943137d690;hb=1190ff74a8c63e097abcfd93544ae82abe98e696;hp=b48496e00c1d6ac8585e229fe4310dbb8b825fd2;hpb=d23fa73e1e3be9862f5ceb9d0062bc97db54226e;p=dotfiles diff --git a/.vimrc b/.vimrc index b48496e..dd1d9bd 100644 --- a/.vimrc +++ b/.vimrc @@ -32,14 +32,14 @@ set scrolloff=5 " Turn off error bells and visual bell set noeb vb t_vb= -" Set tabs to width 4. +" Set tabs to width 2. filetype plugin indent on set shiftwidth=2 set softtabstop=2 set tabstop=2 set expandtab -" language-specific settings +" language-specific settings: tab width is 4 for python autocmd FileType python setlocal shiftwidth=4 softtabstop=4 tabstop=4 " Allow backspacing over everything in insert mode. @@ -87,6 +87,11 @@ syn sync fromstart " Set the color scheme to desert. colorscheme desert +" Set custom whitespace display +set list +set showbreak=↪\ +set listchars=tab:\ \ →,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨ + " Unmap the arrow keys to prevent bad habits. noremap "" noremap!