| |
| |
| |
| |
| |
|
|
| |
| if exists("g:skip_loading_mswin") && g:skip_loading_mswin |
| finish |
| endif |
|
|
| |
| if 1 |
| let s:save_cpo = &cpoptions |
| endif |
| set cpo&vim |
|
|
| |
| set selection=exclusive |
| set selectmode=mouse,key |
| set mousemodel=popup |
| set keymodel=startsel,stopsel |
|
|
| |
| set backspace=indent,eol,start whichwrap+=<,>,[,] |
|
|
| |
| vnoremap <BS> d |
|
|
| " the better solution would be to use has("clipboard_working |
| |
| |
| if has("clipboard") |
| |
| vnoremap <C-X> |
| vnoremap <S-Del> |
|
|
| |
| vnoremap <C-C> |
| vnoremap <C-Insert> |
|
|
| |
| map <C-V> |
| map <S-Insert> |
|
|
| cmap <C-V> <C-R>+ |
| cmap <S-Insert> <C-R>+ |
| else |
| |
|
|
| |
| vnoremap <C-X> x |
| vnoremap <S-Del> x |
|
|
| |
| vnoremap <C-C> y |
| vnoremap <C-Insert> y |
|
|
| |
| noremap <C-V> gP |
| noremap <S-Insert> gP |
|
|
| inoremap <C-V> <C-R> |
| inoremap <S-Insert> <C-R> |
| endif |
|
|
| |
| |
| |
| |
| |
|
|
| if has("clipboard") |
| exe 'inoremap <script> <C-V> <C-G>u' . paste#paste_cmd['i'] |
| exe 'vnoremap <script> <C-V> ' . paste#paste_cmd['v'] |
| endif |
|
|
| imap <S-Insert> <C-V> |
| vmap <S-Insert> <C-V> |
|
|
| |
| noremap <C-Q> <C-V> |
|
|
| |
| |
| noremap <C-S> :update<CR> |
| vnoremap <C-S> <C-C>:update<CR> |
| inoremap <C-S> <Esc>:update<CR>gi |
|
|
| |
| |
| if !has("unix") |
| set guioptions-=a |
| endif |
|
|
| |
| noremap <C-Z> u |
| inoremap <C-Z> <C-O>u |
|
|
| |
| noremap <C-Y> <C-R> |
| inoremap <C-Y> <C-O><C-R> |
|
|
| |
| if has("gui") |
| noremap <M-Space> :simalt ~<CR> |
| inoremap <M-Space> <C-O>:simalt ~<CR> |
| cnoremap <M-Space> <C-C>:simalt ~<CR> |
| endif |
|
|
| |
| noremap <C-A> gggH<C-O>G |
| inoremap <C-A> <C-O>gg<C-O>gH<C-O>G |
| cnoremap <C-A> <C-C>gggH<C-O>G |
| onoremap <C-A> <C-C>gggH<C-O>G |
| snoremap <C-A> <C-C>gggH<C-O>G |
| xnoremap <C-A> <C-C>ggVG |
|
|
| |
| noremap <C-Tab> <C-W>w |
| inoremap <C-Tab> <C-O><C-W>w |
| cnoremap <C-Tab> <C-C><C-W>w |
| onoremap <C-Tab> <C-C><C-W>w |
|
|
| |
| noremap <C-F4> <C-W>c |
| inoremap <C-F4> <C-O><C-W>c |
| cnoremap <C-F4> <C-C><C-W>c |
| onoremap <C-F4> <C-C><C-W>c |
|
|
| if has("gui") |
| |
| noremap <expr> <C-F> has("gui_running") ? ":promptfind\<CR>" : "/" |
| inoremap <expr> <C-F> has("gui_running") ? "\<C-\>\<C-O>:promptfind\<CR>" : "\<C-\>\<C-O>/" |
| cnoremap <expr> <C-F> has("gui_running") ? "\<C-\>\<C-C>:promptfind\<CR>" : "\<C-\>\<C-O>/" |
|
|
| |
| |
| nnoremap <expr> <C-H> has("gui_running") ? ":promptrepl\<CR>" : "\<C-H>" |
| inoremap <expr> <C-H> has("gui_running") ? "\<C-\>\<C-O>:promptrepl\<CR>" : "\<C-H>" |
| cnoremap <expr> <C-H> has("gui_running") ? "\<C-\>\<C-C>:promptrepl\<CR>" : "\<C-H>" |
| endif |
|
|
| |
| set cpo& |
| if 1 |
| let &cpoptions = s:save_cpo |
| unlet s:save_cpo |
| endif |
|
|