From 83d4a9af28c9ff2a0aedebe6a94b3d7fc59fe85a Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 17 Aug 2011 10:14:52 -0700 Subject: [PATCH] Minor updates to .vimrc Use a dot for trailing spaces in list view. Move comments off of remap lines (I didn't realize Vim treated the entire line as part of the macro (i.e. NO LINE-END COMMENTS). --- vimrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index d84fb54..3a3e115 100644 --- a/vimrc +++ b/vimrc @@ -37,7 +37,7 @@ set fo+=2 " format paragraphs with first line indent different set list set lcs+=tab:▸\ " show tabs set lcs+=eol:¬ " show end-of-lines -set lcs+=trail:. " show trailing spaces +set lcs+=trail:・ " show trailing spaces set lcs+=extends:# " show long lines (that go offscreen) set lcs+=nbsp:. " show non-breaking spaces @@ -46,8 +46,10 @@ set smartcase " case-sensitive search if pattern contains a capital set incsearch " show search matches as you type set hlsearch " highlight search matches set gdefault " apply searches globally to a line by default -nnoremap / /\v " use PCREs for searches in normal mode -vnoremap / /\v " ditto for visual mode + +" use PCREs for searches +nnoremap / /\v +vnoremap / /\v set spelllang=en " set spelling language if has('win32') || has('win64') @@ -65,7 +67,6 @@ set undolevels=1000 " keep lots of undo history set viminfo=%100,'100,/100,h,\"500,:100,n~/.viminfo " I have *NO* idea what this does... - set backspace=indent,eol,start " backspace over everything in insert mode