-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimperatorrc
70 lines (63 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
"3.9 (created: 2015/02/15 15:49:05)
nnoremap <silent> ,r :mapc<CR>:cmapc<CR>:imapc<CR>:so ~/.vimperatorrc<CR>:echo 'settings are reloaded'<CR>
noremap j 3j
noremap k 3k
" noremap <C-h> <C-p>
" noremap <C-l> <C-n>
nnoremap ,b ojavascript:
nnoremap d :<C-u>bd -select lastactive<CR>
" multibyte encode yank (firefox 40~ doesn't work)
" nnoremap y :js<Space>util.copyToClipboard(buffer.URL)<CR>:echom 'URL yanked'<CR>
noremap <silent> y :copy url<CR>
vnoremap <C-c> Y
nnoremap <silent> <C-y> :copy titleAndURL<CR>q
" vnoremap y y<ESC><ESC>
" vnoremap <silent> t y<Esc><Esc>P
" vnoremap <silent> o y<Esc><Esc>p
inoremap <silent> <C-6> <Esc><C-6>
cnoremap <silent> <Down> <Tab>
cnoremap <silent> <Up> <S-Tab>
cnoremap <silent> <C-f> <Right>
cnoremap <silent> <C-b> <Left>
cnoremap <silent> <C-g> <ESC>
cnoremap <silent> <C-j> <NOP>
autocmd VimperatorEnter .* :set complete+=H
set complete=sl
set hintchars=";asdfghjkl"
set wildmode=list:full
set editor='/usr/local/bin/vim'
" 起動時にナビゲーションページを表示しない
set gui=nonavigation
set newtab=all
" set focuscontent
set! browser.urlbar.filter.javascript=false
set! browser.urlbar.maxRichResults=32
set ignorecase
" let g:asdfghjkl_default="true"
" let g:zipDownloadDir="~/Downloads"
style! -name commandline-ime chrome://* #liberator-commandline-command input {ime-mode: inactive;}
style! -name treestyletab chrome://* .tabbrowser-tab { z-index: 0 !important; }
style! -name nofindbar chrome://* findbar { display: none; }
"hatena bo
javascript if (typeof hBookmark != 'undefined') liberator.loadScript('chrome://hatenabookmark/content/vimperator/plugin/hatenabookmark.js', {__proto__: this});
" copy.js
javascript <<EOM
liberator.globalVariables.copy_templates = [
// defaults
{ label: 'titleAndURL', value: '%TITLE%\n%URL%' },
{ label: 'title', value: '%TITLE%' },
{ label: 'anchor', value: '<a href="%URL%">%TITLE%</a>' },
{ label: 'selanchor', value: '<a href="%URL%" title="%TITLE%">%SEL%</a>' },
{ label: 'htmlblockquote', value: '<blockquote cite="%URL%" title="%TITLE%">%HTMLSEL%</blockquote>' },
// added
{ label: 'url', value: '%URL%' },
];
EOM
"◇ feedSomeKeys_3.js
" ======================================================================
" command! -nargs=+ lazy autocmd VimperatorEnter .* <args>
" lazy fmaps -u='twitter.com' -e=vkeydown n r m b u l ?,<S-/> j k <Space> / . gh gc ga gr gd gp gf gl gm gs gu
" t f
" lazy fmaps -u='twitter.com' -e=keydown <ESC>
source! ~/.vimperatorrc.local
" vim: set ft=vim: