diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 12:41:27 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 12:41:27 +0300 |
| commit | 4f2d36194b4f299aa7509d815c07121039ea833b (patch) | |
| tree | f3ded014bad3a4c76ff6a22b8726ebaab68c3d13 /mnv/runtime/emnv.mnv | |
| parent | 5b578e70c314723a3cde5c9bfc2be0bf1dadc93b (diff) | |
| download | Project-Tick-4f2d36194b4f299aa7509d815c07121039ea833b.tar.gz Project-Tick-4f2d36194b4f299aa7509d815c07121039ea833b.zip | |
NOISSUE change uvim folder name to mnv
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'mnv/runtime/emnv.mnv')
| -rw-r--r-- | mnv/runtime/emnv.mnv | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/mnv/runtime/emnv.mnv b/mnv/runtime/emnv.mnv new file mode 100644 index 0000000000..8387c87be0 --- /dev/null +++ b/mnv/runtime/emnv.mnv @@ -0,0 +1,75 @@ +" MNV script for Emnv key bindings +" Maintainer: The MNV Project <https://github.com/Project-Tick/Project-Tick> +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar <Bram@mnv.org> + +" Don't use Vi-compatible mode. +set nocompatible + +" Use the mswin.mnv script for most mappings +source <sfile>:p:h/mswin.mnv + +" Allow for using CTRL-Q in Insert mode to quit MNV. +inoremap <C-Q> <C-O>:confirm qall<CR> + +" MNV 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 + +" 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 + +" mnv: set sw=2 : |
