-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
82 lines (55 loc) · 1.79 KB
/
.ideavimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"" Source your .vimrc
"source ~/.vimrc
" More IdeaVim Plugins
" https://jb.gg/ideavim-plugins
" mapleader to " " not working for some reason?
let mapleader=" "
" nmap <bslash> <space>
" Don't use Ex mode, use Q for formatting.
map Q gq
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Pycharm actions list https://gist.github.com/zchee/9c78f91cc5ad771c1f5d
"" Map <leader>f to the Reformat Code action
"" Think of this as "fix"
map <leader>f <Action>(ReformatCode)
"" Map <leader>r to run
map <leader>r <Action>(Run)
"" Map <leader>r to run
map <leader>s <Action>(Stop)
"" Map <leader>d to start debug
map <leader>d <Action>(Debug)
"" Map <leader>b to toggle the breakpoint on the current line
map <leader>b <Action>(ToggleLineBreakpoint)
"" Think u for update
map <leader>u <Action>(RenameElement)
"" Think e for extract method
map <leader>e <Action>(ExtractMethod)
map <leader>F <Action>(OpenFile)
" left
map <C-Tab> <Action>(NextTab)
" left
map <C-S-Tab> <Action>(PreviousTab)
"" Primagean keybinds
"" map <leader>r <Action>(ReplaceInFile)
"" Primagean keybinds
map <leader>p <Action>(FindInPath)
"" For moving up and down in the file
noremap <C-d> <C-d>zz
noremap <C-u> <C-u>zz
" delete without yanking
" nnoremap <leader>d "_d
" vnoremap <leader>d "_d
" replace currently selected text with default register
" without yanking it
" noremap <leader>p "_dP
nnoremap <leader>x :%s/<C-r><C-w>/
" Find more examples here: https://jb.gg/share-ideavimrc
" SETS "
" -------------------------------------------------------------------- "
" Do incremental searching.
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=4
Plug 'tpope/vim-surround'
Plug 'preservim/nerdtree'