Thanks for reporting. Should be fixed with v9.1.1061
It is! Builds, tests, and runs fine on both a machine with and without unxz. Thanks much Christian.
Brian
Thanks for reporting. Should be fixed with v9.1.1061
Apologies if I'm asking the bleeding obvious, but as so often I find it hard to find what I'm looking for in the help.The `gf` mapping opens the file name under the cursor in the same window. I have a file with one (absolute) file path on each line, and would like to be able to open two or more of them in new tabs without closing that file. If I do `gf` and then `:tabe #` I "lose my position" in the file with paths. So is there a mapping or command which opens the filepath under the cursor in a new tab or at least a new window without losing my position in the file with the path, or how could one be created (it probably could, this being Vim, but I can't figure out how...)?
I'd do it like so
- :vs (or :s) Open the buffer in a new split. This keeps your position
- gf to the file under the cursor.
- <C-W>T Move the new split into a tab
--On Sun, 12 Jan 2025, 11:45 BPJ, <bpj@melroch.se> wrote:Apologies if I'm asking the bleeding obvious, but as so often I find it hard to find what I'm looking for in the help.--The `gf` mapping opens the file name under the cursor in the same window. I have a file with one (absolute) file path on each line, and would like to be able to open two or more of them in new tabs without closing that file. If I do `gf` and then `:tabe #` I "lose my position" in the file with paths. So is there a mapping or command which opens the filepath under the cursor in a new tab or at least a new window without losing my position in the file with the path, or how could one be created (it probably could, this being Vim, but I can't figure out how...)?TIA,/bpj
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CADAJKhDj145XNKwep5H%3D_4EOqRLewA%2BqZybfBGbkQZjp%3DKCg1w%40mail.gmail.com.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAOmRJrfNESO1ChTrpHhMW%2Bjyw9Djq%3DWCZKc5oF-0QrqR7ka8Dg%40mail.gmail.com.
Apologies if I'm asking the bleeding obvious, but as so often I find it hard to find what I'm looking for in the help.--The `gf` mapping opens the file name under the cursor in the same window. I have a file with one (absolute) file path on each line, and would like to be able to open two or more of them in new tabs without closing that file. If I do `gf` and then `:tabe #` I "lose my position" in the file with paths. So is there a mapping or command which opens the filepath under the cursor in a new tab or at least a new window without losing my position in the file with the path, or how could one be created (it probably could, this being Vim, but I can't figure out how...)?TIA,/bpj
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CADAJKhDj145XNKwep5H%3D_4EOqRLewA%2BqZybfBGbkQZjp%3DKCg1w%40mail.gmail.com.
Hi,
there is this the family of commands, of which this is the most representative:
CTRL-W gf *CTRL-W_gf*
Open a new tab page and edit the file name under the cursor.
Like "tab split" and "gf", but the new tab page isn't created
if the file does not exist.
Best regards,
Martino
Apologies if I'm asking the bleeding obvious, but as so often I find it hard to find what I'm looking for in the help.--
The `gf` mapping opens the file name under the cursor in the same window. I have a file with one (absolute) file path on each line, and would like to be able to open two or more of them in new tabs without closing that file. If I do `gf` and then `:tabe #` I "lose my position" in the file with paths. So is there a mapping or command which opens the filepath under the cursor in a new tab or at least a new window without losing my position in the file with the path, or how could one be created (it probably could, this being Vim, but I can't figure out how...)?
TIA,/bpj
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CADAJKhDj145XNKwep5H%3D_4EOqRLewA%2BqZybfBGbkQZjp%3DKCg1w%40mail.gmail.com.
I may have missed the part where you're not checking the current buffer (the bufnr bit). Not sure of an easier way than what you have to check if another buffer is empty.
line('$') == 1 to see if it's just one line
getline('1') == '' to see if that line is completely emptySalmanOn Sun, Jan 5, 2025, 08:09 Lifepillar <lifepillar@lifepillar.me> wrote:var linecount = getbufinfo(bufnr)[0].linecount
I also need to check whether a buffer is empty, which I do like this:
var is_empty = linecount == 1 && empty(getbufoneline(bufnr, 1))
I'm wondering: is there any simpler way to perform the two tasks above
that I'm missing?
Thanks,
Life.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/vle098%24an9%241%40ciao.gmane.io.
line('$') == 1 to see if it's just one line
getline('1') == '' to see if that line is completely empty
var linecount = getbufinfo(bufnr)[0].linecount
I also need to check whether a buffer is empty, which I do like this:
var is_empty = linecount == 1 && empty(getbufoneline(bufnr, 1))
I'm wondering: is there any simpler way to perform the two tasks above
that I'm missing?
Thanks,
Life.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/vle098%24an9%241%40ciao.gmane.io.
Could you try this mappingnnoremap <leader><space> :SWSqlExecuteCurrent<CR>I don't know how the leader key would work with <C-space> (which I read as <ctrl><space>).Igbanam--On Thu, Jan 2, 2025 at 5:47 PM Ven Tadipatri <vtadipatri@gmail.com> wrote:Hi,--I have the Vim Sql Workbench plugin, and I'm trying to get the keyboard shortcut working. When I type ":nmap", I see that this mapping is there:n \<C-Space> @:SWSqlExecuteCurrent<CR>However, when I type "backslash - ctrl - space" , the Terminal just flashes and does nothing. I've tried using a different leader key, and the same thing happens, so it doesn't seem to be a Mac Terminal setting.This is on a mac, with vim 9.1 . On my old mac, this keymapping was working. It still works if I type ":SWSqlExecuteCurrent", it's just the keyboard shortcut that I'm struggling with.Would appreciate any help!Thanks,Ven
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAEodY67Vww8pR%2B6K24T33YcKgsBXw97byZPYWa9YXrb4Z-3jVg%40mail.gmail.com.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAOmRJrcZZB_kgtTSDz%3DAXUsmTp%3D0paqMv4hi%3D_6CK%3DtYaei2Mw%40mail.gmail.com.
Hi,--I have the Vim Sql Workbench plugin, and I'm trying to get the keyboard shortcut working. When I type ":nmap", I see that this mapping is there:n \<C-Space> @:SWSqlExecuteCurrent<CR>However, when I type "backslash - ctrl - space" , the Terminal just flashes and does nothing. I've tried using a different leader key, and the same thing happens, so it doesn't seem to be a Mac Terminal setting.This is on a mac, with vim 9.1 . On my old mac, this keymapping was working. It still works if I type ":SWSqlExecuteCurrent", it's just the keyboard shortcut that I'm struggling with.Would appreciate any help!Thanks,Ven
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAEodY67Vww8pR%2B6K24T33YcKgsBXw97byZPYWa9YXrb4Z-3jVg%40mail.gmail.com.
Using ledger(1) for finances, fields are usually delimited by runs
of 2+ spaces (or a tab), allowing a single space in the account-name.
So I might have a transaction like
2024-012-31 ! Groceries
Expenses:Household:Groceries:Food Lion $18.43
Liabilities:Credit Card:Visa -$18.43
(note the 2+ space indent and the 2+ space separation between the
account and the amount, while the single space in "Food Lion" and
"Credit Card")
It would be awfully handy to have colons and single-spaces be part
of 'isk' so that i_CTRL-N and i_CTRL-P can find full accounts (even
if they contain the occasional space), but that starts causing weird
issues (Vim really doesn't like having space in 'isk')
I've tried i_CTRL-X_CTRL-L to do whole-line completion but I have
enough transactions (and each amount regularly differs) that this
returns dozens or hundreds of matching lines, so it's less than useful.
Short of completely hijacking ^N/^P functionality to complete from
my known chart of accounts, is there a better solution I've overlooked?
Thanks!
-tim
(1) https://ledger-cli.org/