사용자 도구

사이트 도구


intellij_idea:ideavim

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
intellij_idea:ideavim [2021/04/11 16:53]
kwon37xi
intellij_idea:ideavim [2022/12/21 14:30] (현재)
kwon37xi
줄 4: 줄 4:
   * IntelliJ 에서 [[:vim|Vim]] 사용   * IntelliJ 에서 [[:vim|Vim]] 사용
   * [[https://github.com/JetBrains/ideavim/wiki/Home/49ff040ebd078775175a58636b826dfad54013a5|ideavim wiki]]   * [[https://github.com/JetBrains/ideavim/wiki/Home/49ff040ebd078775175a58636b826dfad54013a5|ideavim wiki]]
 +  * [[http://ideavim.sourceforge.net/vim/change.html|IdeaVIM Help: change]]
 +
 +===== 설정 파일 =====
 +  * [[https://github.com/kwon37xi/dotfiles/blob/main/ideavim/.ideavimrc|~/.ideavimrc]]
 +
 +===== actions =====
 +  * '':action {action_id}'' 로 IntelliJ Idea 의 행위를 실행할 수 있다.
 +  * '':actionlist [pattern]'' : 액션의 목록을 볼 수 있다.
 +  * ''IdeaVim: track action Ids'' 설정을 활성화 하면 IntelliJ 에서 한 행위들에 대한 Action ID를 볼 수 있게 된다.
 +  * 키보드 매핑
 +
 +<code>
 +map 단축키 <Action>(action_id)
 +" 예
 +" Map \r to the Reformat Code action
 +map \r <Action>(ReformatCode)
 +
 +" Map <leader>d to start debug
 +map <leader>d <Action>(Debug)
 +
 +" Map \b to toggle the breakpoint on the current line
 +map \b <Action>(ToggleLineBreakpoint)
 +</code>
  
 ===== 관련 도우미 plugin ===== ===== 관련 도우미 plugin =====
줄 9: 줄 32:
  
 ==== easy-motion ==== ==== easy-motion ====
-  * ''set easymotion''+<code> 
 +set easymotion 
 +</code> 
   * 두 가지 플러그인이 모두 설치돼 있을 경우 [[https://github.com/easymotion/vim-easymotion|vim-easymotion]] 기능 수행   * 두 가지 플러그인이 모두 설치돼 있을 경우 [[https://github.com/easymotion/vim-easymotion|vim-easymotion]] 기능 수행
-  * [[https://plugins.jetbrains.com/plugin/13360-ideavim-easymotion|IdeaVim-EasyMotion]]+  * [[https://plugins.jetbrains.com/plugin/13360-ideavim-easymotion|IdeaVim-EasyMotion]] : 단축키 확인
   * [[https://plugins.jetbrains.com/plugin/7086-acejump/|AceJump]]    * [[https://plugins.jetbrains.com/plugin/7086-acejump/|AceJump]] 
-===== 설정 파일 ===== + 
-  * ''~/.ideavimrc''+==== surround ==== 
 +<code> 
 +set surround 
 +</code> 
 +  * [[https://github.com/tpope/vim-surround|vim-surround]] 단축키 확인 
 + 
 +==== commentary ==== 
 +<code> 
 +set commentary 
 +</code> 
 +  * [[https://github.com/tpope/vim-commentary|vim-commentary]] 
 + 
 +==== multiple-cursors ==== 
 +<code> 
 +set multiple-cursors 
 +</code> 
 +  * [[https://github.com/terryma/vim-multiple-cursors|vim-multiple-cursors]] 
 + 
 + 
 +==== 문자열 대체 새줄 기호(substitute, new line) ==== 
 +  * [[:vim|Vim]] 에서는 명령모드(command-line mode) '':s/ab/a^Mb/g'' 명령으로 문자열 대체시에 ''^M''을 ''<Ctrl-V><Enter>''로 입력하면 ''ab'' 문자열이 ''a'' 그리고 줄바꿈 후 ''b''로 대체 된다. 
 +  * ideavim 은 ''<Ctrl-V>다른키''를 통한 특수문자 입력을 지원하지 않고 있다. 
 +  * 이 경우 '':s/ab/a\rb/g'' 처럼 ''\r''로 새줄기호를 나타내면 작동한다. 어떤 경우에는 ''\n''이 새줄기호 역할을 하기도 한다고 한다.
  
  
줄 23: 줄 71:
   * [[https://johngrib.github.io/wiki/config-ideavim/|IdeaVim 설정하기 - 기계인간 John Grib]]   * [[https://johngrib.github.io/wiki/config-ideavim/|IdeaVim 설정하기 - 기계인간 John Grib]]
   * [[https://bylee5.tistory.com/102|IdeaVim :: 꾸준하게]]   * [[https://bylee5.tistory.com/102|IdeaVim :: 꾸준하게]]
 +  * [[https://danidiaz.medium.com/configuring-ideavimrc-de16a4da0715|Configuring .ideavimrc. This is my current .ideavimrc. | by Daniel Díaz Carrete | Medium]]
 +  * [[https://topic.alibabacloud.com/a/ideavim-plugin-usage-tips-jetbrains-plugin-vim_1_57_30151231.html|Ideavim Plugin usage tips--jetbrains Plugin Vim]]
intellij_idea/ideavim.1618127610.txt.gz · 마지막으로 수정됨: 2021/04/11 16:53 저자 kwon37xi