diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-05 18:24:42 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-05 18:24:42 +0000 |
commit | c81e5e79a0f2f5c2ac1896fa51cbe47e2e2a8d97 (patch) | |
tree | 5211ea86daed8e43c3dd25458e808c3d32100097 /runtime/vimrc_example.vim | |
parent | 9aae141a6bcfc26bcce352deb8bf34566a3e1be2 (diff) | |
download | vim-git-c81e5e79a0f2f5c2ac1896fa51cbe47e2e2a8d97.tar.gz |
updated for version 7.1a
Diffstat (limited to 'runtime/vimrc_example.vim')
-rw-r--r-- | runtime/vimrc_example.vim | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/runtime/vimrc_example.vim b/runtime/vimrc_example.vim index f69e3d690..eaf3fd6ba 100644 --- a/runtime/vimrc_example.vim +++ b/runtime/vimrc_example.vim @@ -1,7 +1,7 @@ " An example for a vimrc file. " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last change: 2002 Sep 19 +" Last change: 2006 Nov 16 " " To use it, copy it to " for Unix and OS/2: ~/.vimrc @@ -37,9 +37,8 @@ set incsearch " do incremental searching " Don't use Ex mode, use Q for formatting map Q gq -" This is an alternative that also works in block mode, but the deleted -" text is lost and it only works for putting the current register. -"vnoremap p "_dp +" In many terminal emulators the mouse works just fine, thus enable it. +set mouse=a " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. @@ -69,7 +68,7 @@ if has("autocmd") " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | - \ exe "normal g`\"" | + \ exe "normal! g`\"" | \ endif augroup END @@ -79,3 +78,8 @@ else set autoindent " always set autoindenting on endif " has("autocmd") + +" Convenient command to see the difference between the current buffer and the +" file it was loaded from, thus the changes you made. +command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis + \ | wincmd p | diffthis |