-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimperatorrc
executable file
·82 lines (80 loc) · 2.54 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
" OPTION {{{
" default colorscheme
set titlestring=www
set popups=tab
" complete search engine suguest
set complete=lsb
" use home row letters for hints instead of numbers
set hintchars=sadfjklewcmpgh
" only follow hints when press enter
" set followhints=1
" open things at new tab
set newtab=all
" highlight all search matches, not just the first
set hlsearch
" find as you type
set incsearch
" ignorecase
set ignorecase
" set wild mode to show completions as you type
set wildmode=list:longest,full
" turn off the freakin' bell
set novisualbell
" remove the chrome
set gui=noaddons,nobookmarks,nomenu,navigation,tabs
" enable animation
set animations
set editor='bash -lc "gvim -f \$*" gvim '
" }}}
" MAPPING {{{
map , <Leader>
nmap d :quit<CR>
" unset maps
nmap w <Nop>
nmap W <Nop>
nmap u <Nop>
nmap a <Nop>
nmap x :quit<CR>
" movement
nmap j 5<Down>
nmap k 10<Up>
" vimium like keymap
nmap u <C-u>
nmap J :tabprevious<CR>
nmap K :tabnext<CR>
" disable highlight
map <Leader>/ :set hlf!<CR>
" yank selected text to clipboard
nmap Y <yank-selection>
" open addons manager
nmap <Leader>a :dialog addons<CR>
" private mode
nmap <Leader>p :set private!<CR>
" add bookmarks
nmap <Leader>d :dialog addbookmark<CR>
" history
nmap <Leader>h :history<CR>
" list closed tabs
nmap <Leader>u :undo<Space>
" list bookmarks
nmap <Leader>b :bmarks<Space>
" }}}
" IGNOREKEYS {{{
ignorekeys add 'mail.google.com'
ignorekeys add 'drive.google.com'
ignorekeys add 'www.google.com/calendar'
ignorekeys add 'www.google.com/reader'
ignorekeys add 'http://localhost'
"}}}
" monochrome white hints
hi Hint text-transform: uppercase; font-family : "Helvetica Neue", "Helvetica", "Arial", "Sans"; font-weight: bold; font-size: 11px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); color: #302505; padding: 1px 3px 0px 3px; background: -moz-linear-gradient(top, #FFFFFF, #B6B6B6); border: 1px #B6B6B6 solid; border-radius: 2px; -moz-box-shadow: 0 3px 7px 0px rgba(0,0,0,0.3);
hi HintElem background-color: inherit !important;
hi HintActive background-color: inherit !important;
hi HintImage opacity: .7 !important;
"{{{
command! -nargs=0 -description="Tile Tabs..." sp emenu Tile.Tile New Tab.Above
command! -nargs=0 -description="Tile Tabs..." vnew emenu Tile.Tile New Tab.Right
command! -nargs=0 -description="Tile Tabs..." vs emenu Tile.Tile Tab.Right
command! -nargs=0 -description="Sync now" sync emenu Tools.Sync Now
"}}}"
" vim: set fdm=marker: