" VimはUSキーボードに優しくないよね nnoremap ; : xnoremap ; : nnoremap q; q: " Prefixの開放 nnoremap ' nnoremap s " Window移動 nnoremap sh h nnoremap sj j nnoremap sk k nnoremap sl l " 設定開くマン nnoremap . edit ~/.vim/conf " Open directory for netrw like plugin nnoremap d edit %:p:h " + j/k でPageDown/Up nnoremap j nnoremap k " 安全にかつ高速に終わるための設定 nnoremap Q confirm qa xnoremap Q confirm qa onoremap Q confirm qa " こまめなセーブは忘れずに nnoremap s update " 背景を一瞬で透過する nnoremap tp hi Normal guibg=NONE hi EndOfBuffer guibg=NONE " Short hand to window prefix nnoremap w " タブ関連 nnoremap tabnext tnoremap tabnext nnoremap th tabprevious nnoremap tl tabnext nnoremap tq tabclose nnoremap tt tab split " にハイライト消去・ファイル変更適用効果を追加 " from https://github.com/takker99/dotfiles/blob/9ebeede1a43f7900c4c35e2d1af4c0468565bee9/nvim/userautoload/init/mapping.vim#L34-L35 nnoremap :nohlsearch:checktime " from https://github.com/aonemd/aaku/blob/0455967a9eae4abc7d66c6d2ce8059580d4b3cc5/vim/vimrc#L66 nnoremap ! :! " from https://gist.github.com/tsukkee/1240267 onoremap ( t( " short hand to window-down/up nnoremap j nnoremap k " 括弧とか打つのにShift押したくないでござる " genius maping by @KosukeMizuno " heavily modified by me call hypermap#map(';s', '(') call hypermap#map(';d', '=') call hypermap#map(';f', ')') call hypermap#map(';w', '{') call hypermap#map(';e', '+') call hypermap#map(';r', '}') call hypermap#map(';x', '<') call hypermap#map(';c', '-') call hypermap#map(';v', '>') call hypermap#map(';q', '|') call hypermap#map(';z', '\') call hypermap#map(',q', '!') call hypermap#map(',w', '@') call hypermap#map(',e', '#') call hypermap#map(',r', '$') call hypermap#map(',a', '&') call hypermap#map(',s', '"') call hypermap#map(',d', '*') call hypermap#map(',f', '%') call hypermap#map(',z', '_') call hypermap#map(',x', "'") call hypermap#map(',c', "^") call hypermap#map(',v', "`") noremap! ' : " sugoi undo nnoremap U " thanks monaqa and tsuyoshicho "" code input advanced in insert mode inoremap u =nr2char(0x) " my ui nnoremap sm call vimrc#ui#menu()