Skip to content

Instantly share code, notes, and snippets.

@dahu
Created January 30, 2014 13:17
Show Gist options
  • Save dahu/8708115 to your computer and use it in GitHub Desktop.
Save dahu/8708115 to your computer and use it in GitHub Desktop.
my vim maps as generated by Vimple's MyMaps() function (with some hand-editing)
" Insertlessly
n <BS> <Plug>BSPastBOL
n <Del> <Plug>DelAtEOL
n <CR> <Plug>InsertNewline
n <S-CR> <Plug>OpenNewline
n <Space> <Plug>InsertSpace
" Buffalo
n <Space>l <Plug>BuffaloTrigger
c <C-G> <Plug>BuffaloRecursive
c <Space> <SNR>59_buffalo()
" Commentary
n \\ <Plug>Commentary
x \\ <Plug>Commentary
n gc <Plug>Commentary
x gc <Plug>Commentary
n \\\ <Plug>CommentaryLine
n gcc <Plug>CommentaryLine
n \\u <Plug>CommentaryUndo
n gcu <Plug>CommentaryUndo
" Surround
n cs <Plug>Csurround
n ds <Plug>Dsurround
i <C-G>S <Plug>ISurround
i <C-G>s <Plug>Isurround
i <C-S> <Plug>Isurround
x gS <Plug>VgSurround
x S <Plug>VSurround
n ySS <Plug>YSsurround
n ySs <Plug>YSsurround
n yss <Plug>Yssurround
n yS <Plug>YSurround
n ys <Plug>Ysurround
" Fan,fingTastic;
o , <Plug>fanfingtastic_,
x , <Plug>fanfingtastic_,
n , <Plug>fanfingtastic_,
o ; <Plug>fanfingtastic_;
x ; <Plug>fanfingtastic_;
n ; <Plug>fanfingtastic_;
o F <Plug>fanfingtastic_F
x F <Plug>fanfingtastic_F
n F <Plug>fanfingtastic_F
o f <Plug>fanfingtastic_f
x f <Plug>fanfingtastic_f
n f <Plug>fanfingtastic_f
o T <Plug>fanfingtastic_T
x T <Plug>fanfingtastic_T
n T <Plug>fanfingtastic_T
o t <Plug>fanfingtastic_t
x t <Plug>fanfingtastic_t
n t <Plug>fanfingtastic_t
" MarkMyWords
n <Space>ml <Plug>MMW_MarkLine
n <Space>'l <Plug>MMW_Select
" cecutil - Charles E Chuck's Vim Util Library
o <Space>rwp <Plug>RestoreWinPosn
o <Space>swp <Plug>SaveWinPosn
" SearchParty
n <Space>md <Plug>SearchPartyDeleteMatch
n <Space>? <Plug>SearchPartyFindLiteralBkwd
n <Space>/ <Plug>SearchPartyFindLiteralFwd
n <C-L> <C-L><Plug>SearchPartyHighlightClear
n <C-\> <Plug>SearchPartyHighlightToggle
n <Space>g* <Plug>SearchPartyHighlightWORD
n <Space>* <Plug>SearchPartyHighlightWord
n <Space>mF <Plug>SearchPartyMashFOWDisable
n <Space>mf <Plug>SearchPartyMashFOWEnable
n # <Plug>SearchPartyMashShadow#
n * <Plug>SearchPartyMashShadow*
n g# <Plug>SearchPartyMashShadowg#
n g* <Plug>SearchPartyMashShadowg*
n N <Plug>SearchPartyMashShadowN
n n <Plug>SearchPartyMashShadown
n <Space>mm <Plug>SearchPartySetMatch<CR>
n <Space>ms <Plug>SearchPartySetSearch
v * <Plug>SearchPartyVisualFindNext
v # <Plug>SearchPartyVisualFindPrev
v & <Plug>SearchPartyVisualSubstitute
" Vimdictive
n <Space>df <Plug>vimdictive_filter
n <Space>dr <Plug>vimdictive_filter_rhyme
n <Space>dm <Plug>vimdictive_meanings
n <Space>ds <Plug>vimdictive_synonyms
" Vimple
n <Space>gu <Plug>VimpleMRU
" VimRegStyle
n <Space>re/ <Plug>VRS/
n <Space>re? <Plug>VRS?
n <Space>re" <Plug>VRSDouble
i <C-B>re" <Plug>VRSDouble
c <C-G>re" <Plug>VRSDouble
n <Space>rep <Plug>VRSPlain
i <C-B>rep <Plug>VRSPlain
c <C-G>rep <Plug>VRSPlain
n <Space>re' <Plug>VRSSingle
i <C-B>re' <Plug>VRSSingle
c <C-G>re' <Plug>VRSSingle
" VimLocalMacros
n * <Space>mr :call RunMacroLine(getline('.'))<CR>
n * <Space>mw :call WriteMacro(input("Register? "))<CR>
" IPA
n <Space>IPA <Plug>IPAToggle
" matchit
o * % v:<C-U>call <SNR>20_Match_wrapper('',1,'o') <CR>
v * % :<C-U>call <SNR>20_Match_wrapper('',1,'v') <CR>m'gv``
n * % :<C-U>call <SNR>20_Match_wrapper('',1,'n') <CR>
v [% <Esc>[%m'gv``
v ]% <Esc>]%m'gv``
v a% <Esc>[%v]%
o * [% v:<C-U>call <SNR>20_MultiMatch("bW", "o") <CR>
n * [% :<C-U>call <SNR>20_MultiMatch("bW", "n") <CR>
o * ]% v:<C-U>call <SNR>20_MultiMatch("W", "o") <CR>
n * ]% :<C-U>call <SNR>20_MultiMatch("W", "n") <CR>
o * g% v:<C-U>call <SNR>20_Match_wrapper('',0,'o') <CR>
v * g% :<C-U>call <SNR>20_Match_wrapper('',0,'v') <CR>m'gv``
n * g% :<C-U>call <SNR>20_Match_wrapper('',0,'n') <CR>
" netrw
n gx <Plug>NetrwBrowseX
" ---- maps from ~/.vimrc
" diff support
n * <Space>dc :q<CR>:diffoff<CR>:exe "norm! ".g:diffline."G"<CR>
n * <Space>do :DiffOrig<CR>
n * <Space>E :exe getline('.')<CR>
n * <Space>gf EditFileWORD()
" resize windows
n * <Space>H :exe "resize " winheight(0) * 2<CR>
n * <Space>h :exe "resize " winheight(0) / 2<CR>
n * <Space>W :exe "vertical resize " winwidth(0) * 2<CR>
n * <Space>w :exe "vertical resize " winwidth(0) / 2<CR>
n * <Space>L :set invlist list?<CR>
n * <Space>N :call ToggleNumberMode()<CR>
n * <Space>mq :call QuietMake()<CR>
n * Q mpgqap`p
n * z<CR> zt
n * <F1> :help <C-R>=ExpandHelpWord()<CR><C-Left>
n * <F2> :set invspell spell?<CR>
n * <F6> :TagbarToggle<CR>
n * <F9> :help function-list<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment