diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-06-13 08:37:31 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-06-13 08:37:31 +0530 |
commit | 28ea0e3cbe1c0f980a05d6fb13a428bcab2ea1c5 (patch) | |
tree | b44f5301c4f60b1dae51a91e72b614996ee074ce /.config/nvim/user/out.vim | |
parent | 311a468de08231c3dd2327473b79066a25e67462 (diff) |
Diffstat (limited to '.config/nvim/user/out.vim')
-rw-r--r-- | .config/nvim/user/out.vim | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/.config/nvim/user/out.vim b/.config/nvim/user/out.vim deleted file mode 100644 index 6e4e1f1..0000000 --- a/.config/nvim/user/out.vim +++ /dev/null @@ -1,36 +0,0 @@ -" capture (dump) the (somewhat long) ouput of the commands like `:digraph`, `:map', `:highlight`, `:scripnames` etc. - -function! s:dump(cmd) abort - - " Start a new split or maybe a buffer or a tab - " enew | " open a new buffer - 10split | enew | " open a new split (with 10% height (?)) - " tabnew | " open a new tab - - " Make it a scratch buffer ( `:help special-buffers`) - setlocal - \ bufhidden=wipe - \ buftype=nofile - \ nobuflisted - \ nolist - \ noswapfile - \ norelativenumber - \ nonumber - - " Write the cmd output to the buffer - put =execute(a:cmd) - " There are 2 empty line at the beginning of the buffer before the ouput of - " the cmd. Not sure from where they are comning from. Anyhow I will delete - " them. - norm gg2dd - - " No modifications to this buffer - setlocal readonly nomodifiable nomodified - - " Press escape to close when you're done - nnoremap <buffer><silent> <Esc> :bd<CR> - -endfunction - -" Define a command to use the function easier -command! -nargs=1 Dump execute "call s:dump(" string(<q-args>) ")" |