summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-01 08:33:15 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-01 08:33:15 +0200
commite166f741ef054ea990aa6d1af85b97ceb82171bb (patch)
tree275e4f7660eaa181cc3e40f71ce72ba8864e6c71 /doc
parentd4fcef1aa835f20f4f9df41eceb406b66f446f70 (diff)
downloadvim-polyglot-e166f741ef054ea990aa6d1af85b97ceb82171bb.tar.gz
vim-polyglot-e166f741ef054ea990aa6d1af85b97ceb82171bb.zip
Some major updates including heuristicsv4.6.0
- Allow to define heuristics in heuristics.yaml - Migrate all filetypes from vim beginning with "a" - Remove enhanced cpp syntax (it was too slow to load) - Use setf instead of set ft for setting filetype (faster) - Override native hauristics with au! - Add globbing of files for packages - Replace predefined dirs with extra_dirs and ignored_dirs - Allow to define proper order of packages with topological sort - Fix powershell detection - Lint and fix many packages.yaml issues - etc etd
Diffstat (limited to 'doc')
-rw-r--r--doc/vim-go.txt36
1 files changed, 32 insertions, 4 deletions
diff --git a/doc/vim-go.txt b/doc/vim-go.txt
index 480b4848..e00dec9b 100644
--- a/doc/vim-go.txt
+++ b/doc/vim-go.txt
@@ -1719,6 +1719,13 @@ Applicable to Neovim and Vim with `terminal` feature only.
>
let g:go_term_mode = "vsplit"
<
+ *'g:go_term_reuse'*
+
+Reuse the terminal window when |'g:go_term_enabled'| is set. By default it's
+disabled.
+>
+ let g:go_term_reuse = 0
+<
*'g:go_term_height'*
*'g:go_term_width'*
@@ -2242,6 +2249,8 @@ The program will halt on the breakpoint, at which point you can inspect the
program state. You can go to the next line with |:GoDebugNext| (<F10>) or step
in with |:GoDebugStep| (<F11>).
+The program can also be halted with `:GoDebugHalt` (<F6>).
+
The variable window in the bottom left (`GODEBUG_VARIABLES`) will display all
local variables. Struct values are displayed as `{...}`, array/slices as
`[4]`. Use <CR> on the variable name to expand the values.
@@ -2258,10 +2267,21 @@ the `dlv` process, or |:GoDebugRestart| to recompile the code.
*go-debug-commands*
DEBUGGER COMMANDS~
-Only |:GoDebugStart|, `:GoDebugTest`, and |:GoDebugBreakpoint| are available
-by default. `:GoDebugContinue` becomes available after running `:GoDebugStart`
-or `:GoDebugTest`. The rest of the commands and mappings become available
-after executing `:GoDebugContinue`.
+Only |:GoDebugAttach|, |:GoDebugStart|, |:GoDebugTest|, and
+|:GoDebugBreakpoint| are available by default. |:GoDebugContinue| becomes
+available after running |:GoDebugAttach|, |:GoDebugStart| or |:GoDebugTest|.
+The rest of the commands and mappings become available after executing
+|:GoDebugContinue|.
+
+ *:GoDebugAttach*
+:GoDebugAttach pid
+
+ Start the debug mode for pid; this does several things:
+
+ * Setup the debug windows according to |'g:go_debug_windows'|.
+ * Make the `:GoDebug*` commands and `(go-debug-*)` mappings available.
+
+ Use |:GoDebugStop| to stop `dlv` and exit debugging mode.
*:GoDebugStart*
:GoDebugStart [pkg] [program-args]
@@ -2291,6 +2311,14 @@ after executing `:GoDebugContinue`.
Stop the program (if running) and restart `dlv` to recompile the package.
The current window layout and breakpoints will be left intact.
+ *:GoDebugHalt*
+ *(go-debug-halt)*
+:GoDebugHalt
+
+ Halt the program.
+
+ Mapped to <F6> by default.
+
*:GoDebugStop*
*(go-debug-stop)*
:GoDebugStop