annotate runtime/evim.vim @ 4871:74a330469e22

Added tag v7-3-1181 for changeset b7bb20390111
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Jun 2013 22:08:58 +0200
parents b1c70c500de4
children 284b4eb307fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim script for Evim key bindings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Maintainer: Bram Moolenaar <Bram@vim.org>
818
1f929f3ca806 updated for version 7.0c03
vimboss
parents: 7
diff changeset
3 " Last Change: 2006 Mar 29
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Don't use Vi-compatible mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 set nocompatible
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Use the mswin.vim script for most mappings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 source <sfile>:p:h/mswin.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Vim is in Insert mode by default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 set insertmode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Make a buffer hidden when editing another one
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 set hidden
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Make cursor keys ignore wrapping
2220
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
18 inoremap <silent> <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
19 inoremap <silent> <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " CTRL-F does Find dialog instead of page forward
2220
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
22 noremap <silent> <C-F> :promptfind<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
23 vnoremap <silent> <C-F> y:promptfind <C-R>"<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
24 onoremap <silent> <C-F> <C-C>:promptfind<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
25 inoremap <silent> <C-F> <C-O>:promptfind<CR>
b1c70c500de4 Found a way to make the MS-Windows installer wait for the uninstaller to
Bram Moolenaar <bram@vim.org>
parents: 818
diff changeset
26 cnoremap <silent> <C-F> <C-C>:promptfind<CR>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 set backspace=2 " allow backspacing over everything in insert mode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 set autoindent " always set autoindenting on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 if has("vms")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 set nobackup " do not keep a backup file, use versions instead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 set backup " keep a backup file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 set history=50 " keep 50 lines of command line history
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 set ruler " show the cursor position all the time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 set incsearch " do incremental searching
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 set mouse=a " always use the mouse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Don't use Ex mode, use Q for formatting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 map Q gq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Switch syntax highlighting on, when the terminal has colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Highlight the last used search pattern on the next search command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 if &t_Co > 2 || has("gui_running")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syntax on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 set hlsearch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 nohlsearch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Only do this part when compiled with support for autocommands.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if has("autocmd")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " Enable file type detection.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " Use the default filetype settings, so that mail gets 'tw' set to 72,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " 'cindent' is on in C files, etc.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Also load indent files, to automatically do language-dependent indenting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 filetype plugin indent on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " For all text files set 'textwidth' to 78 characters.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 au FileType text setlocal tw=78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 endif " has("autocmd")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " vim: set sw=2 :