-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vscodevimrc
119 lines (116 loc) · 4.25 KB
/
.vscodevimrc
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
" ====== Instructions =====
" In Visual Studio Code
" go to Extensions
" search & install "Vim" w/ publisher "vscodevim"
" go to settings.json (<C-P> "Open User Settings")
" add the following
" "vim.vimrc.enable": true,
" "vim.leader": " ",
" (or whatever you desire the leader to be)
" "vim.vimrc.path": "~/AppData/Local/nvim/.vscodevimrc",
" (or wherever this file is on your system)
"
" Ensure the "source ~/AppData/Local/nvim/.vimrc" call below points
" to the .vimrc in the parent directory of this git repository
"
" Reset VSCode to refresh vimrc if any changes are made
"" Grab standard settings
"" NOTE: vscode vim ONLY supports mappings. Does NOT support settings.
"" So only the mappings from .vimrc will carry over.
source ~/AppData/Local/nvim/.vimrc
"""" Move selected region up/down
""vnoremap J :action MoveStatementDown<CR>
""vnoremap K :action MoveStatementUp<CR>
""
"""" Refactor
""nnoremap <leader>rc :action ReformatCode<CR>
""vnoremap <leader>rc :action ReformatCode<CR>
""nnoremap <leader>rw :action RenameElement<CR>
""
"""" Quick fix hot keys
""nnoremap <C-k> :action GotoPreviousError<CR>
""nnoremap <C-j> :action GotoNextError<CR>
""
""
"""" Toggle IDE window configurations
""nnoremap <leader>h :action HideAllWindows<CR>
""nnoremap <leader>H :action ToggleDistractionFreeMode<CR>
""nnoremap <leader>l :action ChangeToolWindowLayout<CR>
""nnoremap <leader>L :action StoreNewLayout<CR>
""nnoremap <leader>e :action CloseAllEditorsButActive<CR>
""nnoremap <leader>- :action ToggleZenMode<CR>
""nnoremap <leader>_ :action TogglePresentationMode<CR>
""
"""" Files
"""" project files
""nnoremap <leader>fs :action GotoFile<CR>
"""" *any* file
""nnoremap <leader>fo :action OpenFile<CR>
""nnoremap <leader>fr :action RenameFile<CR>
""nnoremap <leader>fn :action NewFile<CR>
""nnoremap <leader>fp :action SelectInProjectView<CR>
""nnoremap <leader>? :action RecentFiles<CR>
""nnoremap <leader><space> :action RecentFiles<CR>
""
"""" Editors/Windows
""nnoremap <C-w><C-q> :action CloseEditor<CR>
""nnoremap <C-w>q :action CloseEditor<CR>
""nnoremap <C-w>H :action MoveEditorToOppositeTabGroup<CR>
""nnoremap <C-w>J :action MoveEditorToOppositeTabGroup<CR>
""nnoremap <C-w>K :action MoveEditorToOppositeTabGroup<CR>
""nnoremap <C-w>L :action MoveEditorToOppositeTabGroup<CR>
""nnoremap <C-w>V :action MoveTabRight<CR>
""nnoremap <C-w>S :action MoveTabDown<CR>
""nnoremap <C-=> :action EditorIncreaseFontSize<CR>
""nnoremap <C--> :action EditorDecreaseFontSize<CR>
""
"""" Regions
""nnoremap zc :action CollapseRegion<CR>
""nnoremap zC :action CollapseAllRegions<CR>
""nnoremap zo :action ExpandRegion<CR>
""nnoremap zO :action ExpandAllRegions<CR>
""nnoremap za :action CollapseSelection<CR>
""
"""" Search
""nnoremap <leader>sg :action SearchEverywhere<CR>
""nnoremap <leader>su :action FindUsages<CR>
""nnoremap n nzz:action ExpandRegion<CR>
""nnoremap N Nzz:action ExpandRegion<CR>
""nnoremap <leader>sw :action CheckinProject<CR>
""
"""" Comments
""nnoremap <C-/> :action CommentByLineComment<CR>
""vnoremap <C-/> :action CommentByLineComment<CR>
""nnoremap <leader><C-/> :action CommentByBlockComment<CR>
""vnoremap <leader><C-/> :action CommentByBlockComment<CR>
""
"""" Multiple cursors (requires visual-line mode)
""vnoremap <leader>I :action EditorAddCaretPerSelectedLine<CR>
""vnoremap <leader>A :action EditorAddCaretPerSelectedLine<CR>
""
"""" Seems redundant, but used to exit multiple cursors
""noremap <C-[> <ESC>
""
"""" Build, Run, Debug
""nnoremap <leader>bb :action MakeGradleProject<CR>
""nnoremap <leader>br :action RebuildGradleProject<CR>
""nnoremap <leader>bc :action CleanGradleProject<CR>
""nnoremap <leader>rr :action Run<CR>
""nnoremap <leader>rd :action Debug<CR>
""nnoremap <leader>rc :action Resume<CR>
""nnoremap <leader>rs :action Stop<CR>
""nnoremap <leader>rad :action XDebugger.AttachToProcess<CR>
""nnoremap \\b :action ToggleLineBreakpoint<CR>
""
"""" Changelist
""nnoremap g; :action JumpToLastChange<CR>
""nnoremap g, :action JumpToNextChange<CR>
""
""Plug 'machakann/vim-highlightedyank'
" Standard Keymaps
" ctrl+` for changing viewing modes
"
" Notes
" list of IntelliJ actions can be viewed with command :actionlist
" Tool windows can be opened through RecentFiles, or ctrl+tab
" set "left margin to distraction free mode" to 0