mosakabe @ ウィキ
vimperatorrc
最終更新:
mosakabe
-
view
ワシのvimperatorrc
nmap j 5<C-e> nmap k 5<C-y> map h <Esc><Esc><C-p> map l <Esc><Esc><C-n> noremap i c noremap <C-a> <Insert><C-a><Insert> imap <C-a> <Insert><C-a><Insert> map b <C-b> map m :bmarks!<SPACE> nnoremap alc :<C-u>tabopen<Space>a<Space> set hintchars=ifjklasdhguonmerwc highlight Hint z-index:9999; font-size:17px; font-weight: bold;color: #fff; text-shadow: 0 1px 0 #00F; line-height: 20px; background-color:rgba(0,0,1,0.8); border-width:0px; border-radius: 10px;box-shadow: 0 0 2px rgba(0,0,1, 0.5); padding: 0 0; min-width: 20px; text-indent: -1px;text-align: center; display: inline-block;position:absolute; text-align: cener; vertical-align: middle; font-family: Menlo, Consolas, Monaco, monospace; text-transform: uppercase; margin-top: --2px; margin-left: -7px; set nextpattern=^next$,^次(の)?ページ,次 »,^次へ$ set previouspattern=^prev$,^前(の)?ページ,« 前,^前へ$
プラグイン
ime_controller.js
ime_controller.js
/** * ==VimperatorPlugin== * @name IME Controller Lite * @description control imput method at into commandline-mode * @description-ja コマンドラインモード移行時にIMEの制御を行う * @author teramako teramako@gmail.com * @namespace http://d.hatena.ne.jp/teramako/ * @maxVersion 0.6pre * @minVersion 0.6pre * ==/VimperatorPlugin== * * Please set g:ex_ime_mode and g:textarea_ime_mode value. * * g:ex_ime_mode: * used at into EX mode * * g:textarea_ime_mode: * used at into TEXTAREA mode from INSERT mode and "noinsertmode" is set. * * ex). * :let g:ex_ime_mode = "inactive" * :let g:textarea_ime_mode = "inactive" * * following values are available: * "auto" : No change * "active" : Initially IME on * "inactive" : Initially IME off * "disabled" : Disable IME * * more details: see http://developer.mozilla.org/en/docs/CSS:ime-mode * * if these values are null, "inactive" is used * */ liberator.plugins.imeController = (function(){ var inputElement = document.getAnonymousElementByAttribute( document.getElementById('liberator-commandline-command'),'anonid','input' ); function getMode(name){ return liberator.globalVariables[name] ? liberator.globalVariables[name] : 'inactive'; } function preExec(target,name,func){ var original = target[name]; target[name] = function(){ func.apply(this,arguments); return original.apply(target,arguments); } } preExec(commandline,'open',function(){ liberator.plugins.imeController.set(inputElement, getMode('ex_ime_mode')); }); preExec(events,'onEscape',function(){ if (liberator.mode == modes.INSERT && (modes.extended & modes.TEXTAREA) && !options.insertmode){ var inputField = buffer.lastInputField; if (liberator.plugins.imeController.set(inputField, getMode('textarea_ime_mode'))){ inputField.blur(); setTimeout(function(){inputField.focus();},0); } } }); return { set: function(elem, mode){ if (elem && mode) return elem.style.imeMode = mode; return false; }, reset: function(){ delete liberator.globalVariables.ex_ime_mode; delete liberator.globalVariables.textarea_ime_mode; } }; })(); // vim: sw=4 ts=4 et: