Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. noremap j gj
  2. noremap k gk
  3.  
  4. inoremap jk <ESC>
  5. " map space as leader key
  6. let mapleader=" "
  7. nnoremap <SPACE> <Nop>
  8.  
  9. " tab open action
  10. nmap <tab> :action NextSplitter<CR>
  11. nmap <leader>h :action PreviousTab<CR>
  12. nmap <leader>l :action NextTab<CR>
  13. nmap <leader>e :action RecentChangedFiles<CR>
  14. nmap <leader>fe :action RecentFiles<CR>
  15. nmap <leader>fx :action CloseEditor<CR>
  16. nmap <leader>fs :action Switcher<CR>
  17. nmap <leader>fd :action GoToLastTab<CR>
  18. nmap <leader>fw :action SaveDocument<CR>
  19. nmap <leader>fa :action SelectInProjectView<CR>
  20. nmap <leader>fl :nohls<CR>
  21.  
  22. " built in search looks better
  23. " nnoremap / :action Find<cr>
  24. " but preserve ideavim search
  25. " nnoremap g/ /
  26.  
  27. " enter newlines
  28. nnoremap <CR> o<ESC>
  29. inoremap <CR> <C-o>:action EditorEnter<CR>
  30.  
  31. " move with control arrow key
  32. nnoremap <C-Up> :action MethodUp<CR>
  33. nnoremap <C-Down> :action MethodDown<CR>
  34. "inoremap <C-Up> <C-O>:action MethodUp<CR>
  35. "inoremap <C-Down> <C-O>:action MethodDown<CR>
  36.  
  37. " open declaration in new split tab
  38. nnoremap <C-]> :action GotoDeclaration<CR>
  39. "inoremap <C-]> <ESC>:action GotoDeclaration<CR> <BAR> :action SplitVertically<CR> <BAR> :action NextTab<CR> <BAR> :action EditorToggleInsertState<CR>
  40.  
  41. " select with arrow key
  42. nnoremap <S-Left> :action EditorLeftWithSelection<CR>
  43. nnoremap <S-Right> :action EditorRightWithSelection<CR>
  44. nnoremap <S-Up> :action EditorUpWithSelection<CR>
  45. nnoremap <S-Down> :action EditorDownWithSelection<CR>
  46.  
  47. inoremap <S-Left> <C-O>:action EditorLeftWithSelection<CR>
  48. inoremap <S-Right> <C-O>:action EditorRightWithSelection<CR>
  49. inoremap <S-Up> <C-O>:action EditorUpWithSelection<CR>
  50. inoremap <S-Down> <C-O>:action EditorDownWithSelection<CR>
  51.  
  52. " enable options
  53. set surround
  54. set hlsearch
  55. set incsearch
  56. set ignorecase smartcase
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement