Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
evim.vim76 linesDownload Raw Back to vim92
1" Vim script for Evim key bindings2" Maintainer:	The Vim Project <https://github.com/vim/vim>3" Last Change:	2023 Aug 104" Former Maintainer:	Bram Moolenaar <Bram@vim.org>5 6" Don't use Vi-compatible mode.7set nocompatible8 9" Use the mswin.vim script for most mappings10source <sfile>:p:h/mswin.vim11 12" Allow for using CTRL-Q in Insert mode to quit Vim.13inoremap <C-Q> <C-O>:confirm qall<CR>14 15" Vim is in Insert mode by default16set insertmode17 18" Make a buffer hidden when editing another one19set hidden20 21" Make cursor keys ignore wrapping22inoremap <silent> <Down> <C-R>=pumvisible() ? "\<lt>Down>" : "\<lt>C-O>gj"<CR>23inoremap <silent> <Up> <C-R>=pumvisible() ? "\<lt>Up>" : "\<lt>C-O>gk"<CR>24 25" CTRL-F does Find dialog instead of page forward26noremap <silent> <C-F> :promptfind<CR>27vnoremap <silent> <C-F> y:promptfind <C-R>"<CR>28onoremap <silent> <C-F> <C-C>:promptfind<CR>29inoremap <silent> <C-F> <C-O>:promptfind<CR>30cnoremap <silent> <C-F> <C-C>:promptfind<CR>31 32 33set backspace=2		" allow backspacing over everything in insert mode34set autoindent		" always set autoindenting on35if has("vms")36  set nobackup		" do not keep a backup file, use versions instead37else38  set backup		" keep a backup file39endif40set history=50		" keep 50 lines of command line history41set ruler		" show the cursor position all the time42set incsearch		" do incremental searching43set mouse=a		" always use the mouse44 45" Don't use Ex mode, use Q for formatting46map Q gq47 48" Switch syntax highlighting on, when the terminal has colors49" Highlight the last used search pattern on the next search command.50if &t_Co > 2 || has("gui_running")51  syntax on52  set hlsearch53  nohlsearch54endif55 56" Enable file type detection.57" Use the default filetype settings, so that mail gets 'tw' set to 72,58" 'cindent' is on in C files, etc.59" Also load indent files, to automatically do language-dependent indenting.60filetype plugin indent on61 62" For all text files set 'textwidth' to 78 characters.63au FileType text setlocal tw=7864 65" Add optional packages.66"67" The matchit plugin makes the % command work better, but it is not backwards68" compatible.69" The ! means the package won't be loaded right away but when plugins are70" loaded during initialization.71if has('syntax') && has('eval')72  packadd! matchit73endif74 75" vim: set sw=2 :76 
codekingpro/portable-devtools · Team Ai