mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	docs: add missing termdebug docs from Vim runtime updates
388a5d4f204466ad6baa6aa57295cfRename terminal.txt to nvim_terminal_emulator.txt in vim-patch.sh.
This commit is contained in:
		| @@ -304,7 +304,7 @@ breakpoint, or use the "Clear breakpoint" right-click menu entry. | ||||
| Inspecting variables ~ | ||||
| 					*termdebug-variables* *:Evaluate* | ||||
|  `:Evaluate`	    evaluate the expression under the cursor | ||||
|  `K`		    same | ||||
|  `K`		    same (see |termdebug_map_K| to disable) | ||||
|  `:Evaluate` {expr}   evaluate {expr} | ||||
|  `:'<,'>Evaluate`     evaluate the Visually selected text | ||||
|  | ||||
| @@ -363,6 +363,10 @@ This works slightly differently: | ||||
| 						*termdebug_use_prompt* | ||||
| Prompt mode can be used with: > | ||||
| 	let g:termdebug_use_prompt = 1 | ||||
| < | ||||
| 						*termdebug_map_K* | ||||
| The K key is normally mapped to :Evaluate. If you do not want this use: > | ||||
| 	let g:termdebug_map_K = 0 | ||||
|  | ||||
| < | ||||
| 						*termdebug_disasm_window* | ||||
| @@ -387,11 +391,11 @@ communication channel. | ||||
|  | ||||
| Customizing ~ | ||||
|  | ||||
| GDB command						 *termdebug-customizing* | ||||
|  | ||||
| To change the name of the gdb command, set the "termdebugger" variable before | ||||
| GDB command						*termdebug-customizing* | ||||
| 							*g:termdebugger* | ||||
| To change the name of the gdb command, set the "g:termdebugger" variable before | ||||
| invoking `:Termdebug`: > | ||||
| 	let termdebugger = "mygdb" | ||||
| 	let g:termdebugger = "mygdb" | ||||
| If the command needs an argument use a List: > | ||||
| 	let g:termdebugger = ['rr', 'replay', '--'] | ||||
|  | ||||
| @@ -439,16 +443,18 @@ The argument is the gdb command. | ||||
|  | ||||
| Vim window width						*termdebug_wide* | ||||
|  | ||||
| To change the width of the Vim window when debugging starts, and use a | ||||
| vertical split: > | ||||
|   let g:termdebug_wide = 163 | ||||
| This will set &columns to 163 when `:Termdebug` is used.  The value is restored | ||||
| when quitting the debugger. | ||||
| If g:termdebug_wide is set and &columns is already larger than | ||||
| g:termdebug_wide then a vertical split will be used without changing &columns. | ||||
| Set it to 1 to get a vertical split without every changing &columns (useful | ||||
| for when the terminal can't be resized by Vim). | ||||
| To change the width of the Vim window when debugging starts and use a vertical | ||||
| split: > | ||||
| 	let g:termdebug_wide = 163 | ||||
|  | ||||
| This will set 'columns' to 163 when `:Termdebug` is used.  The value is | ||||
| restored when quitting the debugger. | ||||
|  | ||||
| If g:termdebug_wide is set and 'columns' is already a greater value, then a | ||||
| vertical split will be used without modifying 'columns'. | ||||
|  | ||||
| Set g:termdebug_wide to 1 to use a vertical split without ever changing | ||||
| 'columns'.  This is useful when the terminal can't be resized by Vim. | ||||
|  | ||||
|  | ||||
|  vim:tw=78:ts=8:noet:ft=help:norl: | ||||
|   | ||||
| @@ -243,6 +243,10 @@ preprocess_patch() { | ||||
|   LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/session\(\.[ch]\)/\1\/ex_session\2/g' \ | ||||
|     "$file" > "$file".tmp && mv "$file".tmp "$file" | ||||
|  | ||||
|   # Rename highlight.c to highlight_group.c | ||||
|   LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/highlight\(\.[ch]\)/\1\/highlight_group\2/g' \ | ||||
|     "$file" > "$file".tmp && mv "$file".tmp "$file" | ||||
|  | ||||
|   # Rename keymap.h to keycodes.h | ||||
|   LC_ALL=C sed -e 's/\( [ab]\/src\/nvim\)\/keymap\.h/\1\/keycodes.h/g' \ | ||||
|     "$file" > "$file".tmp && mv "$file".tmp "$file" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zeertzjq
					zeertzjq