Skip to content

Instantly share code, notes, and snippets.

@osyo-manga
Created August 5, 2017 02:30
Show Gist options
  • Save osyo-manga/a760792a062a57fb25a6a24359ce28fd to your computer and use it in GitHub Desktop.
Save osyo-manga/a760792a062a57fb25a6a24359ce28fd to your computer and use it in GitHub Desktop.
nnoremap <C-Space> i <Esc><Right>
nnoremap <Esc><Esc> :nohlsearch<CR>
nnoremap <silent> <C-j> :call append(line(".")-1, "")<CR>
nnoremap <silent> <C-k> <Up>dd
nnoremap <silent> j gj
nnoremap <silent> k gk
nnoremap <Down> gj
nnoremap <Up> gk
nnoremap h <Left>
nnoremap l <Right>
nnoremap n nzzzv
nnoremap N Nzzzv
nnoremap <silent> co :ContinuousNumber <C-a><CR>
nnoremap <C-g> g;zz
nnoremap g; g,
nnoremap <silent> <Leader>/ :keeppatterns s/\\/\//g<CR>:nohlsearch<CR>
nnoremap <silent> <C-l> :tabnext<CR>
nnoremap <silent> <C-h> :tabprevious<CR>
nnoremap <silent> <C-Tab> :tabnext<CR>
nnoremap Yl y$
nnoremap - <Nop>
nnoremap + <Nop>
nnoremap <silent> <S-l> :TabMoveNext<CR>
nnoremap <silent> <S-h> :TabMovePrev<CR>
nnoremap _ <C-w><C-s>/
nmap q [q]
noremap [q]: q:
noremap [q]/ q/
nnoremap <C-q> q
nnoremap <Space>: :<Up>
nnoremap <Space><C-r> :tabnew<CR>
nnoremap <silent> <Space>ii :execute "?".&include<CR> :noh<CR> o
nnoremap <silent> <space>ss :setlocal spell!<CR>
nnoremap <silent> J mzJ`z
nnoremap gc '[v']
nnoremap tt :tabnew<CR>
nnoremap <expr> s* ':%substitute/\<' . expand('<cword>') . '\>/'
nnoremap <silent> <Space><CR> :execute ":tab drop ".$AFTER_FTPLUGIN."/".&filetype.".vim"<CR>
nnoremap <Space>ns :execute "tabnew\|:NeoSnippetEdit ".&filetype<CR>
nnoremap gw gf
nnoremap gf <C-w>gf
nnoremap <silent> <Space>vs<CR> :execute "VimShellTab -create ".expand("%:p:h")<CR>
nnoremap <silent> <Space>vss<CR> :execute "VimShellPop -create ".expand("%:p:h")<CR>
nnoremap <silent> <Space>vsi :VimShellInteractive --split='split \| resize 12'<CR>
nnoremap <Space>ra :Ref webdict aaaaa<Space>
nnoremap <Space>rc :Ref webdict codic<Space>
nnoremap <expr> <Space>i<Space> itunes#pause()
nnoremap <expr> <Space>ip itunes#play()
nnoremap <expr> <Space>is itunes#stop()
nnoremap <expr> <Space>ih itunes#prev()
nnoremap <expr> <Space>il itunes#next()
nmap <Leader>c <Plug>(caw:I:toggle)
nmap <Leader>C <Plug>(caw:I:uncomment)
nmap cp p`[v`]<Plug>(caw:i:comment)
nmap <silent><expr> <Plug>(operator-caw-I-toggle)
nmap <silent><expr> <Plug>(operator-caw-I-uncomment)
nmap <leader><Leader>c <Plug>(operator-caw-I-toggle)ii
nmap <leader><Leader>C <Plug>(operator-caw-I-uncomment)ii
nmap gcy yyp<Plug>(caw:I:toggle)k
nmap <Space>m <Plug>(quickhl-manual-this)
nmap <Space>M <Plug>(quickhl-manual-reset)
nnoremap <Space><Space>res :MyRestart<CR>
nnoremap <silent> <Space>cp :call setreg(v:register, expand("%:p"))<CR>
nmap <Space>op <Plug>(openbrowser-smart-search)
nnoremap <Space>TT :execute "TweetVimSwitchAccount pink_bangbi" \| TweetVimSay<CR>
nnoremap <silent> <Space>vfvf :MyVimFilerTab $VIMFILES<CR>
nnoremap <silent> <Space>vftc :MyVimFilerTab $TEST_CPP<CR>
nnoremap <silent> <Space>vftb :MyVimFilerTab $TEST_BOOST<CR>
nnoremap <silent> <Space>vftv :MyVimFilerTab $TEST_VIM<CR>
nnoremap <silent> <Space>vfvp :MyVimFilerTab $VIMPLUGIN<CR>
nnoremap <silent> <Space>vf<CR> :MyVimFilerTab<CR>
nnoremap <silent> <Space>vfe :VFE<CR>
nnoremap <Space>ufm :Unite frill<CR>
nnoremap <Space>udm :Unite directory_mru<CR>
nnoremap <Space>urm :UniteResume<CR>
nnoremap <Space>uff :Unite file file/new -hide-source-names<CR>
nnoremap <Space>uol :Unite outline -no-quit -buffer-name=outline -winheight=10<CR>
nnoremap <Space>unb :Unite neobundle<CR>
nnoremap <Space>url :Unite reanimate:default_category -default-action=reanimate_switch<CR>
nnoremap <Space>urs :Unite reanimate:default_category -default-action=reanimate_save<CR>
nnoremap <Space>umes :Unite message -wrap<CR>
nnoremap <Space>uqh :Unite qfixhowm/new qfixhowm:nocache -hide-source-names -truncate<CR>
nnoremap <Space>ubb :Unite bookmark<CR>
nnoremap <silent> <Space>ll :Unite menu:shortcut -hide-source-names<CR>
nnoremap <silent> <Leader>r :QuickRun<CR>
nnoremap <silent> <Leader>R :execute ":QuickRun ".get(GetNowQuickrunConfig(), "subtype", "")." -hook/close_buffer/enable_exit 0"<CR>
nnoremap <silent> <Leader><C-r> :QuickRun -hook/run_prevconfig/enable 1<CR>
nnoremap <silent> <Space>qr :UniteQuickRunConfig<CR>
nmap <Esc><Esc> <Plug>(anzu-clear-search-status)<Plug>(anzu-clear-sign-matchline):nohlsearch<CR>
nnoremap <Space>uet :Unite euphoric_player_tracks<CR>
nnoremap <Space>uep :Unite euphoric_player_playlists<CR>
nmap <Space>q <Plug>(precious-quickrun-op)
nnoremap <silent> <Space>: :OverCommandLine<CR>
nnoremap <A-p> :<C-u>Switch<CR>
nnoremap <A-s> :<C-u>Switch<CR>
nmap sa <Plug>(operator-surround-append)
nmap sr <Plug>(operator-surround-replace)
nmap sd <Plug>(operator-surround-delete)
nmap sdd <Plug>(operator-surround-delete)<Plug>(textobj-multiblock-a)
nmap srr <Plug>(operator-surround-replace)<Plug>(textobj-multiblock-a)
nmap sr" <Plug>(operator-surround-replace)<Plug>(textobj-multiblock-a)"
nmap sr' <Plug>(operator-surround-replace)<Plug>(textobj-multiblock-a)'
nmap sr{ <Plug>(operator-surround-replace)<Plug>(textobj-multiblock-a){
nmap sr( <Plug>(operator-surround-replace)<Plug>(textobj-multiblock-a)(
nmap sr[ <Plug>(operator-surround-replace)<Plug>(textobj-multiblock-a)[
nmap sr< <Plug>(operator-surround-replace)<Plug>(textobj-multiblock-a)<
nmap sa <Plug>(operator-surround-append-input-in-advance)
nmap s( <Plug>(operator-surround-append-input-in-advance)(
nmap sb <Plug>(operator-surround-append-input-in-advance)(
nmap s{ <Plug>(operator-surround-append-input-in-advance){
nmap s[ <Plug>(operator-surround-append-input-in-advance)[
nmap s" <Plug>(operator-surround-append-input-in-advance)"
nmap s' <Plug>(operator-surround-append-input-in-advance)'
nmap s` <Plug>(operator-surround-append-input-in-advance)`
nmap YY <Plug>(operator-blockwise-yank-head)
nmap DD <Plug>(operator-blockwise-delete-head)
nmap CC <Plug>(operator-blockwise-change-head)
nmap <expr> SS operator#blockwise#mapexpr_head("\<Plug>(operator-replace)")
nmap <A-y> <Plug>(operator-block-yank)
nmap <A-p> <Plug>(operator-block-paste)
nmap <A-d> <Plug>(operator-block-delete)
nmap <A-y><A-y> <Plug>(operator-block-yank)axb
nmap <A-p><A-p> <Plug>(operator-block-paste)iw
nmap <A-d><A-d> <Plug>(operator-block-delete)axb
nmap <A-a> <Plug>(operator-alignta)
nmap <A-,> <<Plug>(textobj-indent-i)
nmap <A-.> ><Plug>(textobj-indent-i)
nnoremap <silent> <buffer> <C-w>k :call <SID>upjump()<CR>
nnoremap <silent> <buffer> <C-w><C-k> :call <SID>upjump()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment