The selection is a single line. 'yy' does not put the selection into the Windows clipboard, which triple clicking does. I just want to get rid of the newline.
From: 'meine' via vim_use <vim_use@googlegroups.com>
Sent: Saturday, November 23, 2024 5:52:04 AM
To: vim_use@googlegroups.com <vim_use@googlegroups.com>
Subject: Re: Triple Click To Select Entire Line In Windows GVIM
Sent: Saturday, November 23, 2024 5:52:04 AM
To: vim_use@googlegroups.com <vim_use@googlegroups.com>
Subject: Re: Triple Click To Select Entire Line In Windows GVIM
On Sat, Nov 23, 2024 at 04:12:39AM +0000, Roy Fulbright wrote:
> When I triple click a line in GVIM in windows the entire line is selected, but a newline character is part of the selection. How can I triple click a line to select the entire line without the newline character?
Disclaimer: I only work with text files (the proze) and don't do coding.
Is your selection on a line, a sentence or paragraph?
A paragraph can have several sentences, a sentence several lines, a line
several words. These entities all have their own 'nouns' in the VIM
command language.
It depends what VIM-command is behind the tripple-click.
'yy' copies the entire line, also parts that flow forth on new lines
below
'ys' copies the sentence up to the period or whatever mark you set for
the type of file
'yg$' copies til the end of the line with visual characters, but not the
hidden newline. On sentences that flow over several lines this copies
only the line the cursor is on from the cursor position til the enod of
line.
Using the keyboard will give you more control.
KR,
//meine
--
--
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 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vim.org%2Fmaillist.php&data=05%7C02%7C%7Ca0aabda2287d48fed47808dd0baceb76%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638679559493044831%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=uZNZAlhmO6BQ%2BQAsnOEWI95QMbH82b7IEycwdP8p%2BXg%3D&reserved=0
---
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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fvim_use%2FZ0Gz1AD9KARS4pPg%2540trackstand&data=05%7C02%7C%7Ca0aabda2287d48fed47808dd0baceb76%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638679559493060480%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=wuMl753OU%2FDd4Ak13KIL4UWH5%2BHDmMA17ylvIeSHOSE%3D&reserved=0.
> When I triple click a line in GVIM in windows the entire line is selected, but a newline character is part of the selection. How can I triple click a line to select the entire line without the newline character?
Disclaimer: I only work with text files (the proze) and don't do coding.
Is your selection on a line, a sentence or paragraph?
A paragraph can have several sentences, a sentence several lines, a line
several words. These entities all have their own 'nouns' in the VIM
command language.
It depends what VIM-command is behind the tripple-click.
'yy' copies the entire line, also parts that flow forth on new lines
below
'ys' copies the sentence up to the period or whatever mark you set for
the type of file
'yg$' copies til the end of the line with visual characters, but not the
hidden newline. On sentences that flow over several lines this copies
only the line the cursor is on from the cursor position til the enod of
line.
Using the keyboard will give you more control.
KR,
//meine
--
--
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 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vim.org%2Fmaillist.php&data=05%7C02%7C%7Ca0aabda2287d48fed47808dd0baceb76%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638679559493044831%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=uZNZAlhmO6BQ%2BQAsnOEWI95QMbH82b7IEycwdP8p%2BXg%3D&reserved=0
---
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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fvim_use%2FZ0Gz1AD9KARS4pPg%2540trackstand&data=05%7C02%7C%7Ca0aabda2287d48fed47808dd0baceb76%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638679559493060480%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=wuMl753OU%2FDd4Ak13KIL4UWH5%2BHDmMA17ylvIeSHOSE%3D&reserved=0.
No comments:
Post a Comment