-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimperatorrc
67 lines (52 loc) · 2.02 KB
/
.vimperatorrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"================
"General
"================
" do not focus on textbox automatically
set focuscontent
" use visual bell instead of beep
set visualbell
highlight Bell display:none
" restrict to search engine and history in ':o' completion
set complete=sl
" chars in hint mode
"set hintchars=lsjdkfgh
set hintchars=ghfjdkslatyrueiwoqpbnvmcxz
" display only addon and tab
"set gui=nonavigation
" disable IME in command mode
style! -name=commandline-ime chrome://* #liberator-commandline-command input {ime-mode: inactive;}
" use vim for editor
set editor='/Applications/MacVim.app/Contents/MacOS/mvim -f'
" main_coon
let g:maine_coon_default = "am"
let g:maine_coon_style = "height: 1em; margin:0; padding: 3px; border: 1px solid #b3b3b3; border-left: 0; border-bottom: 0; text-align:left; color: #000; font: 21px/1 sans-serif; background: #ebebeb;"
"============================
" Key mapping
"============================
" shortcut for google
noremap s :open<Space>google<Space>
noremap ,s :tabopen<Space>google<Space>
" scroll x7
noremap j 7<C-e>
noremap k 7<C-y>
" swtiching tab
noremap <C-h> gT
noremap <C-l> gt
" close tab
noremap x d
" open from undo list
nnoremap U :undo<Space>
" copy page title to clipboard
nnoremap ct :js util.copyToClipboard(buffer.title);<CR>:echo 'title copied!'<CR>
" copy URL to clipboard
nnoremap cu :js util.copyToClipboard(buffer.URL);<CR>:echo 'url copied!'<CR>
"============================
" colorscheme
"============================
"hi Hint z-index:5000; font-family:Menlo; font-size:14px; color:white; background-color:red; border-color:ButtonShadow; border-width:0px; border-style:solid; padding:0px 2px 0px 2px; position:absolute;
" smooth hint style
hi Hint font-family: Arial; font-size: 19px; font-weight: regular; text-shadow: -1px -1px 0px black, 1px -1px 0px black, -1px 1px 0px black, 1px 1px 1px black; color: #33cccc;
hi HintElem color: gray; background-color: #a1e4e6;
hi HintActive color: black; background-color: #ff8700;
" smooth error style
hi ErrorMsg color:white; background-color: #ec6aa1;