From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. Signed-off-by: Daniel Baumann --- runtime/evim.vim | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 runtime/evim.vim (limited to 'runtime/evim.vim') diff --git a/runtime/evim.vim b/runtime/evim.vim new file mode 100644 index 0000000..d3f349e --- /dev/null +++ b/runtime/evim.vim @@ -0,0 +1,74 @@ +" Vim script for Evim key bindings +" Maintainer: Bram Moolenaar +" Last Change: 2022 May 10 + +" Don't use Vi-compatible mode. +set nocompatible + +" Use the mswin.vim script for most mappings +source :p:h/mswin.vim + +" Allow for using CTRL-Q in Insert mode to quit Vim. +inoremap :confirm qall + +" Vim is in Insert mode by default +set insertmode + +" Make a buffer hidden when editing another one +set hidden + +" Make cursor keys ignore wrapping +inoremap =pumvisible() ? "\Down>" : "\C-O>gj" +inoremap =pumvisible() ? "\Up>" : "\C-O>gk" + +" CTRL-F does Find dialog instead of page forward +noremap :promptfind +vnoremap y:promptfind " +onoremap :promptfind +inoremap :promptfind +cnoremap :promptfind + + +set backspace=2 " allow backspacing over everything in insert mode +set autoindent " always set autoindenting on +if has("vms") + set nobackup " do not keep a backup file, use versions instead +else + set backup " keep a backup file +endif +set history=50 " keep 50 lines of command line history +set ruler " show the cursor position all the time +set incsearch " do incremental searching +set mouse=a " always use the mouse + +" Don't use Ex mode, use Q for formatting +map Q gq + +" Switch syntax highlighting on, when the terminal has colors +" Highlight the last used search pattern on the next search command. +if &t_Co > 2 || has("gui_running") + syntax on + set hlsearch + nohlsearch +endif + +" Enable file type detection. +" Use the default filetype settings, so that mail gets 'tw' set to 72, +" 'cindent' is on in C files, etc. +" Also load indent files, to automatically do language-dependent indenting. +filetype plugin indent on + +" For all text files set 'textwidth' to 78 characters. +au FileType text setlocal tw=78 + +" Add optional packages. +" +" The matchit plugin makes the % command work better, but it is not backwards +" compatible. +" The ! means the package won't be loaded right away but when plugins are +" loaded during initialization. +if has('syntax') && has('eval') + packadd! matchit +endif + +" vim: set sw=2 : -- cgit v1.2.3