Permalink
Browse files

Update configuration

- By default expand tabs
- Enable multiple pastes
- Highlight trailing whitespace by default
  • Loading branch information...
1 parent 7c2420f commit 2b0eb3b0adece685d4bcc39c442202457afd6256 @mecury421 committed Dec 28, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 vimrc
View
14 vimrc
@@ -3,14 +3,14 @@
" ============================================
" Default indentation settings (use spaces)
-set ts=4 sts=4 sw=4 noexpandtab
+set ts=4 sts=4 sw=4 expandtab
" enable line numbers
set nu
" Show visible tabs and eols
-" set list
set listchars=tab:▸\ ,eol
+set list
" Set colour scheme
colors blackboard
@@ -25,6 +25,16 @@ let mapleader=","
" quick switch of list
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

0 comments on commit 2b0eb3b

Please sign in to comment.