whunmr / emacsIDEAs

Porting some great extensions of emacs to Intellij IDEA. such as AceJump, CopyWithoutSelection.
Apache License 2.0
94 stars 13 forks source link

[分享]使用idevim时, 配置.idevimrc的方式 #27

Open Allen-LPL opened 7 years ago

Allen-LPL commented 7 years ago

看了#17 .

Would be great if you can share your .ideavimrc mapping for this plugin. Thanks in advance.

I would like to share my configuration ideas of .ideavimrc mapping for this plugin.

我下面会贴出我用到的emacsIDEAs.aceJump action 最后会贴出所有action的链接, 你完全可以根据这个思路进行自我配置!

前言

这里先说明一下, 通过ideavim使用emacsIDEAs有局限性, 比如你要查o这类的行为, vim会无视emacsIDEAs的操作, 直接执行o命令.

以下, 只是我配置的部分, 这里只做抛砖引玉. 注: 我的操作系统是windows10

emacsIDEAs config in .ideavimrc

nnoremap <Leader>;s :action emacsIDEAs.AceJumpSelect<CR>
nnoremap <Leader>;w :action emacsIDEAs.AceJumpWord<CR>
nnoremap - :action emacsIDEAs.AceJump<CR>
nnoremap <Leader>;y :action emacsIDEAs.AceJumpCopy<CR>
nnoremap <Leader>;c :action emacsIDEAs.AceJumpCut<CR>
nnoremap <Leader>;n :action HighlightNextSymbol<CR>
nnoremap <Leader>;p :action HighlightPrevSymbol<CR>

most of action about emacsIDEAs.AceJump

--- Actions ---
emacsIDEAs.AceJump                                 <M-J> <A-S>
emacsIDEAs.AceJumpAndReplace.Block                 <M-I>
emacsIDEAs.AceJumpAndReplace.Group                 <M-I>
emacsIDEAs.AceJumpAndReplace.Line                  <M-I>
emacsIDEAs.AceJumpAndReplace.Paragraph             <M-I>
emacsIDEAs.AceJumpAndReplace.Quote                 <M-I>
emacsIDEAs.AceJumpAndReplace.String                <M-I>
emacsIDEAs.AceJumpAndReplace.ToLineEnd             <M-I>
emacsIDEAs.AceJumpAndReplace.ToLineStart           <M-I>
emacsIDEAs.AceJumpAndReplace.ToParagraphEnd        <M-I>
emacsIDEAs.AceJumpAndReplace.ToParagraphStart      <M-I>
emacsIDEAs.AceJumpAndReplace.Word                  <M-I>
emacsIDEAs.AceJumpCopy                             <M-I> <A-Y>
emacsIDEAs.AceJumpCopy.Block                       <M-W> <A-D>
emacsIDEAs.AceJumpCopy.Group                       <M-W> <A-D>
emacsIDEAs.AceJumpCopy.Line                        <M-W> <A-D>
emacsIDEAs.AceJumpCopy.Paragraph                   <M-W> <A-D>
emacsIDEAs.AceJumpCopy.Quote                       <M-W>
emacsIDEAs.AceJumpCopy.String                      <M-W> <A-D>
emacsIDEAs.AceJumpCopy.ToLineEnd                   <M-W>
emacsIDEAs.AceJumpCopy.ToLineStart                 <M-W>
emacsIDEAs.AceJumpCopy.ToParagraphEnd              <M-W>
emacsIDEAs.AceJumpCopy.ToParagraphStart            <M-W>
emacsIDEAs.AceJumpCopy.Word                        <M-W>
emacsIDEAs.AceJumpCut                              <M-I> <A-C>
emacsIDEAs.AceJumpDelete.Block                     <M-D>
emacsIDEAs.AceJumpDelete.Group                     <M-D>
emacsIDEAs.AceJumpDelete.Line                      <M-D>
emacsIDEAs.AceJumpDelete.Paragraph                 <M-D>
emacsIDEAs.AceJumpDelete.Quote                     <M-D>
emacsIDEAs.AceJumpDelete.String                    <M-D>
emacsIDEAs.AceJumpDelete.ToLineEnd                 <M-D>
emacsIDEAs.AceJumpDelete.ToLineStart               <M-D>
emacsIDEAs.AceJumpDelete.ToParagraphEnd            <M-D>
emacsIDEAs.AceJumpDelete.ToParagraphStart          <M-D>
emacsIDEAs.AceJumpDelete.Word                      <M-D>
emacsIDEAs.AceJumpMove.Block                       <M-X> <A-A>
emacsIDEAs.AceJumpMove.Group                       <M-X> <A-A>
emacsIDEAs.AceJumpMove.Line                        <M-X> <A-A>
emacsIDEAs.AceJumpMove.Paragraph                   <M-X> <A-A>
emacsIDEAs.AceJumpMove.Quote                       <M-X>
emacsIDEAs.AceJumpMove.String                      <A-A>
emacsIDEAs.AceJumpMove.ToLineEnd                   <M-X>
emacsIDEAs.AceJumpMove.ToLineStart                 <M-X>
emacsIDEAs.AceJumpMove.ToParagraphEnd              <M-X>
emacsIDEAs.AceJumpMove.ToParagraphStart            <M-X>
emacsIDEAs.AceJumpMove.Word                        <M-X>
emacsIDEAs.AceJumpObtainThenReplace.Block          <M-O>
emacsIDEAs.AceJumpObtainThenReplace.Group          <M-O>
emacsIDEAs.AceJumpObtainThenReplace.Line           <M-O>
emacsIDEAs.AceJumpObtainThenReplace.Paragraph      <M-O>
emacsIDEAs.AceJumpObtainThenReplace.Quote          <M-O>
emacsIDEAs.AceJumpObtainThenReplace.String         <M-O>
emacsIDEAs.AceJumpObtainThenReplace.ToLineEnd      <M-O>
emacsIDEAs.AceJumpObtainThenReplace.ToLineStart    <M-O>
emacsIDEAs.AceJumpObtainThenReplace.ToParagraphEnd <M-O>
emacsIDEAs.AceJumpObtainThenReplace.ToParagraphStart <M-O>
emacsIDEAs.AceJumpObtainThenReplace.Word           <M-O>
emacsIDEAs.AceJumpSelect                           <A-K>
emacsIDEAs.AceJumpWord                             <M-L> <M-I> <A-J>

All the action description

whunmr commented 7 years ago

Great Job! 👍👍👍

Geek-Zft commented 5 years ago

awesome!!!