Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
- By default expand tabs
- Enable multiple pastes
- Highlight trailing whitespace by default
  • Loading branch information
mecury421 committed Dec 28, 2011
1 parent 7c2420f commit 2b0eb3b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions vimrc
Expand Up @@ -3,14 +3,14 @@
" ============================================ " ============================================


" Default indentation settings (use spaces) " Default indentation settings (use spaces)
set ts=4 sts=4 sw=4 noexpandtab set ts=4 sts=4 sw=4 expandtab


" enable line numbers " enable line numbers
set nu set nu


" Show visible tabs and eols " Show visible tabs and eols
" set list
set listchars=tab:▸\ ,eol set listchars=tab:▸\ ,eol
set list


" Set colour scheme " Set colour scheme
colors blackboard colors blackboard
Expand All @@ -25,6 +25,16 @@ let mapleader=","
" quick switch of list " quick switch of list
nmap <leader>l :set list!<CR> nmap <leader>l :set list!<CR>
" enable multiple pasting
xnoremap p pgvy
" enable highlighting of trailing whitespace
highlight ExtraWhitespace ctermbg=red guibg=red
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhitespace /\s\+$/



" ============================================ " ============================================
" = AUTOCMD SETTINGS " = AUTOCMD SETTINGS
Expand Down

0 comments on commit 2b0eb3b

Please sign in to comment.