-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimperatorrc
80 lines (60 loc) · 1.67 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
" Vimperator config:
" Copyright to Hersh Deep ([email protected])
" These settings prevent Vimperator from overwriting my preferred Firefox settings.
set! browser.startup.page=1
map J gt
map K gT
nnoremap <C-b> :bmarks
" Miscellaneous
set history=50
" Scrolling
"" Vimperator does not give the user direct control over scroll distance. Vimium (for
"" Chromium/Google Chrome) uses a nice 60px by default; 2<dir> is much smaller, but it
"" feels better in Vimperator.
nnoremap j 4j
nnoremap k 4k
nnoremap h 4h
nnoremap l 4l
noremap d <C-d>
noremap u <C-u>
noremap x :q<CR>
noremap s :stop<CR>
" Display
"" show only the tab bar
set gui=tabs
"" show numbers on each tab
set tabnumbers
"" see http://code.google.com/p/vimperator-labs/issues/detail?id=311
set popups=tab,resized
" Find
"" perform incremental searching
set incsearch
"" highlight search results
set hlsearch
"" typically (see below) ignore case
set ignorecase
"" only consider case if an upper case char is used
set smartcase
" Maps
""" General Mappings
nnoremap <S-u> :undo<CR>
"""" Print
noremap <C-p> :dialog print<CR>
""" Tabs
" Private Window
noremap <C-n> :winopen -private<CR>
""" Mode Overrides
"""" Insert Mode
imap <C-t> <Esc><C-t>
imap <C-w> <Esc><C-w>
"""" Command Mode
cmap <C-k> <Esc><C-k>
cmap <C-l> <Esc><C-l>
cmap <C-t> <Esc><C-t>
" Style
"" See http://bbs.archlinux.org/viewtopic.php?id=69123
"" See https://github.com/VoQn/vimperator-colorscheme/raw/e13afec1be5ec1c9de775d0e2a464862f8d3a453/colors/default.vimp
hi CompItem font-size: 10px;
hi CompTitle color: magenta; font-weight: bold; font-size: 10px;
hi Hint -append font-size: 14px;
hi CmdLine background: black; color: white; transition: all 0.25s;