Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
vim-executor/.executor.vim at main · mctechnology17/vim-executor · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mctechnology17
vim-executor
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
vim-executor
/
.executor.vim
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
174 lines (168 loc) · 6.93 KB
main
Breadcrumbs
vim-executor
/
.executor.vim
Copy path
Top
File metadata and controls
Code
Blame
174 lines (168 loc) · 6.93 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
"
=========================================
"
FileName:
.executor.vim
"
Date:
23:04 20.April.2022
"
Author:
Marcos Chow Castro
"
Email:
mctechnology170318@gmail.com
"
GitHub:
https://github.com/mctechnology17
"
Brief:
these are the default global variables, to disable something,
"
simply change the value to 0 if the variable accepts integers.
"
If the variable accepts strings then give it the value of ''
"
==========================================
"
"" MAPPING:
"
1 = <ESC> 2 = <ESC><ESC> time to exit the terminal and enter normal mode
let
g:
executor_esc
=
\
get
(
g:
,
'
executor_esc
'
,
2
)
"
1 = <S-ARROWS> 2 = <LEADER><ARROWS> 3 = <C-HJKL>
let
g:
executor_jump
=
\
get
(
g:
,
'
executor_jump
'
,
1
)
"
default mapping for various useful functions
"
THERE IS NO OPTION TO CONFIGURE.
"
map: cd -> change directory
"
map: fi -> file identifier
"
map: fl -> file list
"
map: fs -> find string in all files in current directory
"
map: fm -> file maximization
"
map: fw -> file write
"
map: fo -> file open from current directory
"
map: fr -> file rename(curre buffer) like tmux
let
g:
executor_file_mapping
=
\
get
(
g:
,
'
executor_file_mapping
'
,
1
)
"
activate and deactivate the WinBar. ONLY FOR VIM
let
g:
executor_winbar
=
\
get
(
g:
,
'
executor_winbar
'
,
1
)
"
"" DEBUGGER:
let
g:
executor_debugger_define
=
\
get
(
g:
,
'
executor_debugger_define
'
,
0
)
let
g:
executor_debugger_flags_c
=
\
get
(
g:
,
'
executor_debugger_flags_c
'
,
'
'
)
let
g:
executor_debugger_flags_cpp
=
\
get
(
g:
,
'
executor_debugger_flags_cpp
'
,
'
'
)
let
g:
executor_debugger_flags_python
=
\
get
(
g:
,
'
executor_debugger_flags_python
'
,
'
-m
'
)
let
g:
executor_debugger_flags_latex
=
\
get
(
g:
,
'
executor_debugger_flags_latex
'
,
'
'
)
let
g:
executor_debugger_flags_r
=
\
get
(
g:
,
'
executor_debugger_flags_r
'
,
'
'
)
let
g:
executor_debugger_flags_sh
=
\
get
(
g:
,
'
executor_debugger_flags_sh
'
,
'
'
)
"
"" COMPILER:
"
always ask if you want to define the debugger
let
g:
executor_compiler_run_code
=
\
get
(
g:
,
'
executor_compiler_run_code
'
,
0
)
let
g:
executor_compiler_flags_c
=
\
get
(
g:
,
'
executor_compiler_flags_c
'
,
\
'
-g -v -m64 -Wall -Werror -Wunused-parameter -Wunused-variable -O3 -pedantic
'
)
let
g:
executor_compiler_flags_cpp
=
\
get
(
g:
,
'
executor_compiler_flags_cpp
'
,
\
'
-g -v -m64 -Wall -Werror -Wunused-parameter -Wunused-variable -O3 -pedantic
'
)
let
g:
executor_compiler_flags_python
=
\
get
(
g:
,
'
executor_compiler_flags_python
'
,
'
'
)
let
g:
executor_compiler_flags_latex
=
\
get
(
g:
,
'
executor_compiler_flags_latex
'
,
'
'
)
let
g:
executor_compiler_flags_r
=
\
get
(
g:
,
'
executor_compiler_flags_r
'
,
'
--verbose
'
)
let
g:
executor_compiler_flags_sh
=
\
get
(
g:
,
'
executor_compiler_flags_sh
'
,
'
'
)
"
"" ARGUMENTS:
"
always ask if you want to define the arguments
let
g:
executor_input_args
=
\
get
(
g:
,
'
executor_input_args
'
,
0
)
let
g:
executor_program_args_c
=
\
get
(
g:
,
'
executor_program_args_c
'
,
'
'
)
let
g:
executor_program_args_cpp
=
\
get
(
g:
,
'
executor_program_args_cpp
'
,
'
'
)
let
g:
executor_program_args_python
=
\
get
(
g:
,
'
executor_program_args_python
'
,
'
'
)
let
g:
executor_program_args_latex
=
\
get
(
g:
,
'
executor_program_args_latex
'
,
'
'
)
let
g:
executor_program_args_r
=
\
get
(
g:
,
'
executor_program_args_r
'
,
'
'
)
let
g:
executor_program_args_sh
=
\
get
(
g:
,
'
executor_program_args_sh
'
,
'
'
)
"
"" COMMAND:
"
open a vertical terminal
ExecutorTerminalVert
call
executor#OpenTerminalVert
()
"
open a horizontal terminal
ExecutorTerminal
call
executor#OpenTerminal
()
"
open a terminal with size proportional to the vscode terminal
ExecutorTerminalVSC
call
executor#OpenTerminalVSC
()
"
toggle to resize windows
ExecutorToggleResizeWindows
call
executor#ToggleResizeWindows
()
"
call debugger
ExecutorDebugger
call
executor#Debugger
()
"
define the debugger
ExecutorToggleDefineDebugger
call
executor#ToggleDefineDebugger
()
"
debugger mapping: 0.UNMAP 1.gdb 2.lldb 3.pdb 4.vimspector
ExecutorToggleDebuggerMapping
call
executor#ToggleDebuggerMapping
()
"
Mappgin for pdb option 3
"
map: <TAB>u sticky<CR>
"
map: <TAB>d run<Space>
"
map: <TAB>r restart<Space>
"
map: <TAB>q quit<CR>
"
map: <TAB>n next<CR>
"
map: <TAB>h help<CR>
"
map: <TAB>w where<CR>
"
map: <TAB>c continue<CR>
"
map: <TAB>s step<CR>
"
map: <TAB><UP> up<CR>
"
map: <TAB><DOWN> down<CR>
"
map: <TAB><RIGHT> next<CR>
"
map: <TAB><LEFT> reteval<CR>
"
map: <TAB>b break<Space>
"
map: <TAB>db clear<CR>
"
map: <TAB>v jump<CR>
"
map: <TAB>e p<Space>
"
Mappgin for vimspector option 4
"
map: <TAB>d :call vimspector#Launch()<CR>
"
map: <TAB>r :call vimspector#Restart()<CR>
"
map: <TAB>q :call vimspector#Reset()<CR>
"
map: <TAB>n :call vimspector#Continue()<CR>
"
map: <TAB><UP> :call vimspector#StepOut()<CR>
"
map: <TAB><DOWN> :call vimspector#StepInto()<CR>
"
map: <TAB><RIGHT> :call vimspector#StepOver()<CR>
"
map: <TAB><LEFT> :call vimspector#AddWatch( expand( '<cexpr>' ) )<CR>
"
map: <TAB>dw :call vimspector#DeleteWatch()<CR>
"
map: <TAB>b :call vimspector#ToggleBreakpoint()<CR>
"
map: <TAB>db :call vimspector#ClearBreakpoints()<CR>
"
map: <TAB>v :call vimspector#RunToCursor()<CR>
"
map: <TAB>e :<c-u>call vimspector#Evaluate( expand( '<cexpr>' ) )<CR>
"
install the debugger pdbpp with pip for python
ExecutorInstallPDBPP
call
executor#InstallPDBPP
()
"
uninstall the debugger pdbpp
ExecutorUninstallPDBPP
call
executor#UninstallPDBPP
()
"
install the debugger pdbpp with conda for python
ExecutorInstallPDBPPConda
call
executor#InstallPDBPPConda
()
"
uninstall the debugger pdbpp
ExecutorUninstallPDBPPConda
call
executor#UninstallPDBPPConda
()
"
run the code
ExecutorRun
call
executor#Run
()
"
clean object files: main.o, main.exe, pdf, __pycache__ etc
ExecutorClean
call
executor#Clean
()
"
compile the code
ExecutorCompiler
call
executor#Compiler
()
"
zoom in the current window/buffer
ExecutorZoom
call
executor#Zoom
(
v:
true
)
"
on/off argument input
ExecutorToggleArgs
call
executor#ToggleArgs
()
"
call a menu
ExecutorMenu
call
executor#Menu
()
"
call the WinBar
ExecutorWinBar
call
executor#WinBar
()
"
source a local config in your current directory
ExecutorConfig
call
executor#Config
()
"
kill all buffers and keep the current buffer
ExecutorKillAllBuffers
silent
!
execute
"
%bd|e#|bd#
"
"
"" WINBAR:
"
Winbar defaults. if you want to customize the winbar you can leave the
"
corresponding variable for activation at 0, or simply add more options of
"
your interest
nnoremenu
WinBar. :
call
executor#Menu
()
<CR>
nnoremenu
WinBar.▶ :
call
executor#Run
()
<CR>
nnoremenu
WinBar.⟲ :
call
executor#Compiler
()
<CR>
nnoremenu
WinBar. :
call
executor#Debugger
()
<CR>
nnoremenu
WinBar.
\
✔︎ :
call
executor#ToggleDefineDebugger
()
<CR>
nnoremenu
WinBar.ᗧ•••ᗣ :
call
executor#ToggleArgs
()
<CR>
nnoremenu
WinBar. :
call
executor#OpenTerminalVSC
()
<CR>
nnoremenu
WinBar.♻︎ :
call
executor#Clean
()
<CR>
nnoremenu
WinBar.✕ :aunmenu WinBar
<CR>
"
vim:
set
fdm
=
marker:
You can’t perform that action at this time.