|
Revision 7962, 1.0 kB
(checked in by shunirr, 8 months ago)
|
|
dotfiles/vimperatorrc/shunirr-vimperatorrc: add shunirr-vimperatorrc
|
| Line | |
|---|
| 1 | " shunirr .vimperatorrc |
|---|
| 2 | " |
|---|
| 3 | |
|---|
| 4 | set verbose=9 |
|---|
| 5 | set guioptions=bm |
|---|
| 6 | set activate=quickmark,paste |
|---|
| 7 | set visualbell |
|---|
| 8 | set complete=sbfh |
|---|
| 9 | set preload |
|---|
| 10 | |
|---|
| 11 | noremap j 3<C-e> |
|---|
| 12 | noremap k 3<C-y> |
|---|
| 13 | noremap J <PageDown> |
|---|
| 14 | noremap K <PageUp> |
|---|
| 15 | noremap h <A-Left> |
|---|
| 16 | noremap l <A-Right> |
|---|
| 17 | noremap <BS> <A-Left> |
|---|
| 18 | |
|---|
| 19 | noremap <C-r> :restart<cr> |
|---|
| 20 | |
|---|
| 21 | " select next/previous tab |
|---|
| 22 | map <Right> gt |
|---|
| 23 | map <Left> gT |
|---|
| 24 | map <Up> <C-b> |
|---|
| 25 | map <Down> <C-f> |
|---|
| 26 | map <C-l> gt |
|---|
| 27 | map <C-h> gT |
|---|
| 28 | |
|---|
| 29 | " |
|---|
| 30 | map I <C-q> |
|---|
| 31 | map <C-[> <Esc> |
|---|
| 32 | |
|---|
| 33 | " plugin custom |
|---|
| 34 | map ,t :twitter<space> |
|---|
| 35 | map ,b :hb<space> |
|---|
| 36 | |
|---|
| 37 | " custom js |
|---|
| 38 | " http://d.hatena.ne.jp/teramako/20071205/p1 |
|---|
| 39 | javascript <<EOM |
|---|
| 40 | (function(){ |
|---|
| 41 | var feedPanel = document.createElement('statusbarpanel'); |
|---|
| 42 | var feedButton = document.getElementById('feed-button'); |
|---|
| 43 | feedPanel.setAttribute('id', 'feed-panel-clone'); |
|---|
| 44 | feedPanel.appendChild(feedButton.cloneNode(true)); |
|---|
| 45 | feedButton.parentNode.removeChild(feedButton); |
|---|
| 46 | document.getElementById('status-bar').insertBefore(feedPanel, document.getElementById('security-button')); |
|---|
| 47 | })(); |
|---|
| 48 | EOM |
|---|
| 49 | |
|---|