-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vimperatorrc
107 lines (77 loc) · 2.5 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
" https://github.com/seudut/dotfiles/blob/master/vimperatorrc
" https://gist.github.com/igal/329662
cd ~
set runtimepath+=~/vimperator-plugins
source ~/vimperator/vimppm/plugin/vimppm.js
" Github
" vimppm 'cd01/evernote-clearly-vimp'
" vimppm 'hoge/hogehoge-vimp'
" vimppm 'homu/homuhomu-vimp'
" Vimpr
" vimppm '_smooziee.js'
"===[ Settings ]========================================================
let mapleader = ','
javascript <<EOB
var hintsType = 'numbers'
function switchHintsType() {
if (hintsType == 'numbers') {
hintsType = 'letters';
liberator.execute(':set hintchars=hjklasdfgyuiopqwertnmzxcvb');
} else {
hintsType = 'numbers';
liberator.execute(':set hintchars=0123456789');
}
}
EOB
command! switchHintsType javascript switchHintsType()
nnoremap <C-i> :switchHintsType<CR>
nmap <Leader>ss :source ~/_vimperatorrc<CR>
" nnoremap <Leader>a :set hintchars=hjklasdfgyuiopqwertnmzxcvb<CR>
" nnoremap <Leader>n :set hintchars=0123456789<CR>
highlight Hint font-size:125%;color:white;background-color:red;padding:2px;
cmap <C-p> <Up>
cmap <C-n> <Down>
cmap <C-h> <BS>
cmap <C-[> <Esc>
" Autocomplete using Firefox Awesomebar subsystem
" set complete=l
" Show completions as you type? '' waits for tab, 'auto' shows them immediately
" set wildoptions=''
" Select the longest autocomplete match
" set wildmode='list:full'
" Show a (n)umber on tabs, the (b)ottom scrollbar, and the (r)ight scrollbar
" set guioptions=nbr
" Always show tab bar
" set showtabline=1
" Don't beep
" set noerrorbells
" Make Firefox run faster by using JIT
" set! javascript.options.jit.chrome=true
" map <F2> :echo new Date().toDateString()<CR>
map <F2> :echo Date().slice(0, (Date().indexOf(' GMT')))
map s :tabopen google<SPACE>
map S :open google<SPACE>
" set gui=none
set gui=noaddons,nobookmarks,nomenu,nonavigation,tabs
js services.services.autoCompleteSearch.class_="@mozilla.org/autocomplete/search;1?name=unifiedcomplete"
cmap jj <Esc>
nnoremap J gT
nnoremap K gt
" To Enable map <Space>
js <<EOM
window.addEventListener('keypress',function (event) {
var code=event.charCode;
if ((liberator.mode === modes.INSERT && modes.extended === modes.MENU)
||(liberator.mode ==modes.NORMAL && code==32)
||(liberator.mode ==modes.COMMAND_LINE && code !=32)){
let map = mappings.get(liberator.mode, events.toString(event));
if (map) {
event.preventDefault();
event.stopPropagation();
map.execute();
}
}
},false);
EOM
map <Space> :
" vim: ft=vim