forked from Donearm/configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimperatorrc
57 lines (44 loc) · 1.69 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
" vim: set ft=vim fdm=marker tw=0:
set titlestring=Firefox
set editor="gvim -f +<line> <file>"
set maxitems=20
set cpt=sl
set newtab=all
set pageinfo=gfm
set shell='/bin/bash'
" set color scheme
colorscheme g2
" show pattern matches as you type
set incsearch
" alphabetic characters instead of numbers for hints
set hintchars=asdfghjklònmuioprewcvt
" Highlight previous search pattern matches
set hlsearch
" show destination links in 1=status line, 2=command line
set showstatuslinks=1
" pass through mode for some sites, automatically
autocmd LocationChange .* js modes.passAllKeys=0
autocmd LocationChange .* js modes.passAllKeys = /twitter\.com/.test(buffer.URL)
autocmd LocationChange .* js modes.passAllKeys = /tumblr\.com/.test(buffer.URL)
autocmd LocationChange .* js modes.passAllKeys = /duckduckgo\.com/.test(buffer.URL)
autocmd LocationChange .* js modes.passAllKeys = /getprismatic\.com/.test(buffer.URL)
autocmd LocationChange .* js modes.passAllKeys = /feedly\.com/.test(buffer.URL)
autocmd LocationChange /(www|mail|plus)\.google\.com/ -javascript modes.passAllKeys=1
" faster scrolling
map j 5<C-e>
map k 5<C-y>
" Ctrl+hjkl navigation
map <C-j> <down>
map <C-k> <up>
map <C-l> <END>
map <C-h> <NOP>
let mapleader = ","
" recent history "jumps"
map <Leader>j :jumps<CR>
" focus first input by default with just i
map i gi
" view native size of image without clicking it
map <Leader>z :js window.content.document.toggleImageSize();<CR>
" customized next and previous patterns
set nextpattern=^>$,[Nn]ext,[Mm]ore,([Ss]ucc|[Ss]uccessiva),([Pp]ross|[Pp]rossima),([Aa]vanti),^(>>|»)$,^(>|»),(>|»)$
set previouspattern=^<$,([Pp]rev|[Pp]revious),([Pp]re|[Pp]recedente),([Ii]ndietro),^(<<|«)$,^(<|«),(<|«)$