Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Allen-LPL opened this issue Aug 4, 2017 · 2 comments
Open

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

Allen-LPL opened this issue Aug 4, 2017 · 2 comments

Comments

@Allen-LPL
Copy link

Allen-LPL commented Aug 4, 2017

看了#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
Copy link
Owner

whunmr commented Aug 5, 2017

Great Job! 👍👍👍

@Geek-Zft
Copy link

awesome!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants