Skip to content

Instantly share code, notes, and snippets.

@Muratam
Created September 7, 2015 13:29
Show Gist options
  • Select an option

  • Save Muratam/9c2eb0b727a84895af9b to your computer and use it in GitHub Desktop.

Select an option

Save Muratam/9c2eb0b727a84895af9b to your computer and use it in GitHub Desktop.
" Mode | 再割当無し | 再割当有
" Normal + Visual | noremap | map
" Cmdline + Insert | noremap! | map!
" Normal | nnoremap | nmap
" Visual | vnoremap | vmap
" Cmdline | cnoremap | cmap
" Insert | inoremap | imap
" Vimの機能で変更する | ユーザーが定義したキー割り当てに従う
"Normal : 通常時
"Cmdline: open とかコマンドの時
"Insert : InputField等
"Visual : C V の時、選択できる。
"・caret-hint.js
"拡張ヒントモードに「キャレットを指定位置に移動」が追加される。キーボードでのテキスト選択はこれなしにはままならないレベルで必須。
source! "C:\\Users\\3104\\_vimperatorrc.local"
" //////////入力欄に自動フォーカスしない
set focuscontent
" //////////起動時に前回のセッションを復元
set! browser.startup.page=3
" //////////エラー時のビープ音をビジュアルベル使用
set visualbell
" //////////textarea, input 両方で spell check を有効にする
"set! layout.spellcheckDefault=2
"set! spellchecker.dictionary=en-US
" //////////単語選択時の右側のスペース選択を行わない
set! layout.word_select.eat_space_to_next_word=false
" //////////自動補完の候補
set complete=sl
"ページ全体で検索語を強調表示
set hlsearch
" //////////commandモードでは日本語入力(IME)は外す
style! -name=commandline-ime chrome://* #liberator-commandline-command input {ime-mode: inactive;}
" //////////Hintモード関係
set hintchars=@plokmnji
hi Hint font-family: YUYUKO Script; font-size: 21px; font-weight: bold; text-shadow: -1px -1px 2px black, 1px -1px 2px black, -1px 1px 2px black, 1px 1px 2px black; color: #33cccc;
hi HintElem color: gray; background-color: aquamarine;
hi HintActive color: black; background-color: #ff8700;
"///////片手ブラウジング用/////////////////////////////////
"noremap <C-Up> <PageUp>
"noremap <C-Down> <PageDown>
noremap <C-Right> <Esc><C-Tab>
inoremap <C-Right> <Esc><C-Tab>
noremap <C-Left> <Esc><C-S-Tab>
inoremap <C-Left> <Esc><C-S-Tab>
noremap <Leader><Right> <Esc><C-Tab>
noremap <Leader><Left> <Esc><C-S-Tab>
noremap <Del> <C-w>
noremap <S-Del> u
noremap <C-S-Del> :winclose<Return>
"noremap <S-BS> <C-w>
"noremap <S-Del> :winclose<Return>
" 最初のフォームにフォーカスさせる。
"noremap j gi
" dはtabを閉じるのだから、Dはwindowを閉じよう
noremap D :winclose<Return>
noremap <C-d> :winclose<Return>
"お気に入り
noremap l <A-b>
noremap L a<Return>
noremap <Minus> <A-b>
noremap = a<Return>
noremap p i<C-t>
noremap P i<C-t><A-b>
" google検索
noremap s <C-l>
noremap S <C-t><C-l>
" undo一覧から開く
nnoremap U :undo<Space>
" dをブラウザ標準の「タブを閉じる」にマッピング
nnoremap d <C-w>
"Commandモードで上下キーもタブにする(主にopen用)
cnoremap <Up> <S-Tab>
cnoremap <Down> <Tab>
"////////////////////////////////////////////VisualMode
vnoremap v <Esc><Esc>
vnoremap c <Esc>
vnoremap <C-c> <C-c><Esc>
"//////////元の機能と同じにする部分/////////////////////////////////
noremap <C-a> i<C-a>
inoremap <C-a> <Ins><C-a><Ins>
nnoremap <C-c> i<C-c>
noremap <C-f> i<C-f>
"noremap <Left> i<Left>
"noremap <Right> i<Right>
"noremap <Up> i<Up>
"noremap <Down> i<Down>
"/////////使わない機能は誤作動を防ぐために全て消しておく/////////////
noremap q iq
noremap w iw
noremap W iW
noremap n in
noremap r ir
noremap R iR
noremap I iI
noremap O iO
noremap g ig
noremap G iG
noremap <C-u> i<C-u>
noremap <C-i> i<C-i>
noremap <C-o> i<C-o>
noremap <C-g> i<C-g>
noremap a ia
noremap H iH
noremap h ih
noremap k ik
noremap K iK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment