Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into tabsidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtnn committed Jul 14, 2024
2 parents a2bbcdd + 700cf8c commit 93d99ac
Show file tree
Hide file tree
Showing 33 changed files with 534 additions and 188 deletions.
4 changes: 2 additions & 2 deletions runtime/doc/index.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*index.txt* For Vim version 9.1. Last change: 2023 Jul 06
*index.txt* For Vim version 9.1. Last change: 2023 Jul 14


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -757,7 +757,7 @@ tag char note action in Normal mode ~
search pattern and Visually select it
|gP| ["x]gP 2 put the text [from register x] before the
cursor N times, leave the cursor after it
|gQ| gQ switch to "Ex" mode with Vim editing
|gQ| gQ switch to "Ex" mode with Vim editing
|gR| gR 2 enter Virtual Replace mode
|gT| gT go to the previous tab page
|gU| gU{motion} 2 make Nmove text uppercase
Expand Down
11 changes: 9 additions & 2 deletions runtime/doc/insert.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2005,8 +2005,15 @@ command in ex mode: >
one
two
<
NOTE: These commands cannot be used with |:global| or |:vglobal|.
":append" and ":insert" don't work properly in between ":if" and
In |Ex-mode|, when these commands are used with |:global| or |:vglobal| then
the lines are obtained from the text following the command. Separate lines
with a NL escaped with a backslash: >
:global/abc/insert\
one line\
another line
The final "." is not needed then.

NOTE: ":append" and ":insert" don't work properly in between ":if" and
":endif", ":for" and ":endfor", ":while" and ":endwhile".

*:start* *:startinsert*
Expand Down
4 changes: 3 additions & 1 deletion runtime/doc/terminal.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*terminal.txt* For Vim version 9.1. Last change: 2024 Jul 04
*terminal.txt* For Vim version 9.1. Last change: 2024 Jul 14


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1253,6 +1253,8 @@ Starting ~
*termdebug-starting*
Load the plugin with this command: >
packadd termdebug
<When loading the plugin from the |.vimrc| file, add the "!" attribute: >
packadd! termdebug
< *:Termdebug*
To start debugging use `:Termdebug` or `:TermdebugCommand` followed by the
command name, for example: >
Expand Down
7 changes: 5 additions & 2 deletions runtime/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ au BufNewFile,BufRead *.com call dist#ft#BindzoneCheck('dcl')
au BufNewFile,BufRead *.dot,*.gv setf dot

" Dune
au BufNewFile,BufRead jbuild,dune,dune-project,dune-workspace setf dune
au BufNewFile,BufRead jbuild,dune,dune-project,dune-workspace,dune-file setf dune

" Dylan - lid files
au BufNewFile,BufRead *.lid setf dylanlid
Expand Down Expand Up @@ -1629,7 +1629,7 @@ au BufNewFile,BufRead *.xom,*.xin setf omnimark
au BufNewFile,BufRead .ondirrc setf ondir

" OPAM
au BufNewFile,BufRead opam,*.opam,*.opam.template setf opam
au BufNewFile,BufRead opam,*.opam,*.opam.template,opam.locked,*.opam.locked setf opam

" OpenFOAM
au BufNewFile,BufRead [a-zA-Z0-9]*Dict\(.*\)\=,[a-zA-Z]*Properties\(.*\)\=,*Transport\(.*\),fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g,*/0\(\.orig\)\=/* call dist#ft#FTfoam()
Expand Down Expand Up @@ -2455,6 +2455,9 @@ au BufNewFile,BufRead texdoc.cnf setf conf
" Sometime we need to view its content for debugging
au BufNewFile,BufRead *.{pgf,nlo,nls,thm,eps_tex,pygtex,pygstyle,clo,aux,brf,ind,lof,loe,nav,vrb,ins,tikz,bbx,cbx,beamer} setf tex

" LaTeX files generated by Inkscape
au BufNewFile,BufRead *.pdf_tex setf tex

" ConTeXt
au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi,*.mkxl,*.mklx setf context

Expand Down
4 changes: 2 additions & 2 deletions runtime/indent/ocaml.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
" Mike Leary <[email protected]>
" Markus Mottl <[email protected]>
" URL: https://github.com/ocaml/vim-ocaml
" Last Change: 2023 Aug 28 - Add undo_indent (Vim Project)
" 2017 Jun 13
" Last Change: 2017 Jun 13
" 2005 Jun 25 - Fixed multiple bugs due to 'else\nreturn ind' working
" 2005 May 09 - Added an option to not indent OCaml-indents specially (MM)
" 2013 June - commented textwidth (Marc Weber)
Expand Down Expand Up @@ -36,6 +35,7 @@ if !exists("no_ocaml_comments")
setlocal comments=sr:(*\ ,mb:\ ,ex:*)
setlocal comments^=sr:(**,mb:\ \ ,ex:*)
setlocal fo=cqort
let b:undo_indent .= " | setl com< fo<"
endif
endif

Expand Down
10 changes: 3 additions & 7 deletions runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def CreateGdbConsole(dict: dict<any>, pty: string, commpty: string): string

# ---- gdb started. Next, let's set the MI interface. ---
# Set arguments to be run.
if len(proc_args)
if !empty(proc_args)
term_sendkeys(gdbbufnr, $"server set args {join(proc_args)}\r")
endif

Expand Down Expand Up @@ -1321,12 +1321,8 @@ def DeleteCommands()
endif

sign_unplace('TermDebug')
breakpoints = {}
breakpoint_locations = {}

sign_undefine('debugPC')
sign_undefine(BreakpointSigns->map("'debugBreakpoint' .. v:val"))
BreakpointSigns = []
enddef


Expand All @@ -1339,7 +1335,7 @@ def Until(at: string)
ch_log('assume that program is running after this command')

# Use the fname:lnum format
var AT = empty(at) ? $"{fnameescape(expand('%:p'))}:{line('.')}" : at
var AT = empty(at) ? $"\"{expand('%:p')}:{line('.')}\"" : at
SendCommand($'-exec-until {AT}')
else
ch_log('dropping command, program is running: exec-until')
Expand All @@ -1358,7 +1354,7 @@ def SetBreakpoint(at: string, tbreak=false)
endif

# Use the fname:lnum format, older gdb can't handle --source.
var AT = empty(at) ? $"{fnameescape(expand('%:p'))}:{line('.')}" : at
var AT = empty(at) ? $"\"{expand('%:p')}:{line('.')}\"" : at
var cmd = ''
if tbreak
cmd = $'-break-insert -t {AT}'
Expand Down
3 changes: 3 additions & 0 deletions runtime/syntax/dune.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
" Anton Kochkov <[email protected]>
" URL: https://github.com/ocaml/vim-ocaml
" Last Change:
" 2023 Nov 24 - Add end-of-line strings (Samuel Hym)
" 2019 Feb 27 - Add newer keywords to the syntax (Simon Cruanes)
" 2018 May 8 - Check current_syntax (Kawahara Satoru)
" 2018 Mar 29 - Extend jbuild syntax with more keywords (Petter A. Urkedal)
Expand Down Expand Up @@ -38,6 +39,8 @@ syn keyword lispFunc ignore-stdout ignore-stderr ignore-outputs
syn keyword lispFunc with-stdout-to with-stderr-to with-outputs-to
syn keyword lispFunc write-file system bash

syn region lispString start=+"\\[>|]+ end=+$+ contains=@Spell

syn cluster lispBaseListCluster add=duneVar
syn match duneVar '\${[@<^]}' containedin=lispSymbol
syn match duneVar '\${\k\+\(:\k\+\)\?}' containedin=lispSymbol
Expand Down
Loading

0 comments on commit 93d99ac

Please sign in to comment.