" Vim script for Evim key bindings " Maintainer: Bram Moolenaar <Bram@vim.org> " Last Change: 2017 Sep 20 " Don't use Vi-compatible mode. set nocompatible " Use the mswin.vim script for most mappings source <sfile>:p:h/mswin.vim " 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 <silent> <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR> inoremap <silent> <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR> " CTRL-F does Find dialog instead of page forward noremap <silent> <C-F> :promptfind<CR> vnoremap <silent> <C-F> y:promptfind <C-R>"<CR> onoremap <silent> <C-F> <C-C>:promptfind<CR> inoremap <silent> <C-F> <C-O>:promptfind<CR> cnoremap <silent> <C-F> <C-C>:promptfind<CR> 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 " Only do this part when compiled with support for autocommands. if has("autocmd") " 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 endif " has("autocmd") " 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 :
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
autoload | Folder | 0755 |
|
|
colors | Folder | 0755 |
|
|
compiler | Folder | 0755 |
|
|
doc | Folder | 0755 |
|
|
ftplugin | Folder | 0755 |
|
|
indent | Folder | 0755 |
|
|
keymap | Folder | 0755 |
|
|
lang | Folder | 0755 |
|
|
macros | Folder | 0755 |
|
|
pack | Folder | 0755 |
|
|
plugin | Folder | 0755 |
|
|
Folder | 0755 |
|
||
spell | Folder | 0755 |
|
|
syntax | Folder | 0755 |
|
|
tutor | Folder | 0755 |
|
|
bugreport.vim | File | 1.91 KB | 0644 |
|
debian.vim | File | 2.02 KB | 0644 |
|
defaults.vim | File | 4.02 KB | 0644 |
|
delmenu.vim | File | 645 B | 0644 |
|
evim.vim | File | 2.2 KB | 0644 |
|
filetype.vim | File | 54.74 KB | 0644 |
|
ftoff.vim | File | 280 B | 0644 |
|
ftplugin.vim | File | 971 B | 0644 |
|
ftplugof.vim | File | 337 B | 0644 |
|
gvimrc_example.vim | File | 1.56 KB | 0644 |
|
indent.vim | File | 767 B | 0644 |
|
indoff.vim | File | 282 B | 0644 |
|
menu.vim | File | 38.54 KB | 0644 |
|
mswin.vim | File | 3.32 KB | 0644 |
|
optwin.vim | File | 57.93 KB | 0644 |
|
rgb.txt | File | 17.36 KB | 0644 |
|
scripts.vim | File | 11.1 KB | 0644 |
|
synmenu.vim | File | 36.11 KB | 0644 |
|
vimrc_example.vim | File | 1.46 KB | 0644 |
|