Skip to content

Commit

Permalink
follow the format of the buffer name `{scheme}://{expr}[;{params}][#{…
Browse files Browse the repository at this point in the history
…fragment}]`
  • Loading branch information
satorunooshie committed Jul 7, 2024
1 parent 991c04a commit 017aa99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ def! g:InstallPackPlugins(): void #{{{
enddef #}}}

def! g:UpdatePackPlugins(): void #{{{
const bufname = 'vimrc://update/plugins'
# Needs escape not to use file-pattern.
var prevbuf: number = bufnr('\[update plugins]\')
var prevbuf: number = bufnr(bufname)
if prevbuf != -1
# Needs `:` before Ex command with range.
execute ':' .. prevbuf .. 'bwipeout!'
endif
var nr: number = bufadd('[update plugins]')
var nr: number = bufadd(bufname)
bufload(nr)
execute ':' .. nr .. 'sb'
ToScratch
Expand Down Expand Up @@ -575,7 +576,7 @@ command! -bar ToScratch setlocal buftype=nofile bufhidden=hide noswapfile
command! -bar ToScratchForFiles ToScratch | setlocal iskeyword+=.
command! -bar -nargs=? ModsNew <mods> new
| if len(<q-args>) > 0
| edit [<args>]
| edit modsnew://output/<args>
| endif

# List files recursively in the specified directory.
Expand Down

0 comments on commit 017aa99

Please sign in to comment.