mirror of
https://github.com/amix/vimrc
synced 2025-07-04 06:44:59 +08:00
modified
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
" File : basic.vim
|
||||
" License: MIT
|
||||
" Author : Xinyue Ou <xinyue3ou@gmail.com>
|
||||
" Date : 06.01.2019
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Maintainer:
|
||||
" Amir Salihefendic — @amix3k
|
||||
@ -139,7 +143,7 @@ if $COLORTERM == 'gnome-terminal'
|
||||
endif
|
||||
|
||||
try
|
||||
colorscheme desert
|
||||
colorscheme solarized
|
||||
catch
|
||||
endtry
|
||||
|
||||
@ -380,3 +384,12 @@ function! VisualSelection(direction, extra_filter) range
|
||||
let @/ = l:pattern
|
||||
let @" = l:saved_reg
|
||||
endfunction
|
||||
|
||||
|
||||
" fix meta-keys which generate <Esc>a .. <Esc>z
|
||||
let c='a'
|
||||
while c <= 'z'
|
||||
exec "set <M-".toupper(c).">=\e".c
|
||||
exec "imap \e".c." <M-".toupper(c).">"
|
||||
let c = nr2char(1+char2nr(c))
|
||||
endw
|
||||
|
Reference in New Issue
Block a user