Some basic Vim commands

2021-04-17 Thread Julius Hamilton
I was curious: I can jump to the beginning of some text on a line that begins with whitespace with v, w, h, d. Is there a single command to delete all initial whitespace on a line? I then wanted to jump over a few words to the next number (in brackets). Is there any command to the effect of "find

Re: Some basic Vim commands

2021-04-17 Thread Tony Mechelynck
On Sat, Apr 17, 2021 at 4:48 PM Julius Hamilton wrote: > > I was curious: > > I can jump to the beginning of some text on a line that begins with > whitespace with v, w, h, d. Is there a single command to delete all initial > whitespace on a line? > > I then wanted to jump over a few words to th

Re: Some basic Vim commands

2021-04-17 Thread Eli the Bearded
Julius Hamilton wrote: > I can jump to the beginning of some text on a line that begins with > whitespace with v, w, h, d. Is there a single command to delete all initial > whitespace on a line? I'd typically do that in either of two ways: : {range} s/^[ TAB]*// With a {range} like ".",

Re: Some basic Vim commands

2021-04-18 Thread Romain Lafourcade
> Is there a single command to delete all initial whitespace on a line? :left > Is there any command to the effect of "find the next number"? /\d > take this word and the next two words, and send them down 3 newlines. This one is unclear. Do you want to create a new line with just tho

Re: Some basic Vim commands

2021-04-18 Thread 'c.willis111' via vim_use
-- Original Message -- From: "Romain Lafourcade" To: "vim_use" Sent: Sunday, 18 Apr, 2021 At 09:42 Subject: Re: Some basic Vim commands Is there a single command to delete all initial whitespace on a line? :left Is there any command to the effect of &

Re: Some basic Vim commands

2021-04-18 Thread Tony Mechelynck
On Sun, Apr 18, 2021 at 1:33 PM 'c.willis111' via vim_use wrote: > > > > > > -- Original Message -- > From: "Romain Lafourcade" > To: "vim_use" > Sent: Sunday, 18 Apr, 2021 At 09:42 > Subject: Re: Some basic Vim commands >

Re: Some basic Vim commands

2021-04-18 Thread Tony Mechelynck
P.S. And if the text where the number is found can be in any language, we must be able to account for the option which is set in COBOL by the phrase DECIMAL-POINT IS COMMA in the ENVIRONMENT DIVISION, and then if it can /actually/ be in any language we must account for natural integers using all of

Re: Some basic Vim commands

2021-04-18 Thread 'c.willis111' via vim_use
-- Original Message -- From: "Tony Mechelynck" To: "vim_use" Sent: Sunday, 18 Apr, 2021 At 14:32 Subject: Re: Some basic Vim commands P.S. And if the text where the number is found can be in any language, we must be able to account for the option which is set in

Re: Some basic Vim commands

2021-04-19 Thread Julius Hamilton
> To: "vim_use" > Sent: Sunday, 18 Apr, 2021 At 14:32 > Subject: Re: Some basic Vim commands > > P.S. And if the text where the number is found can be in any language, > we must be able to account for the option which is set in COBOL by the > phrase DECIMAL-POINT

Re: Some basic Vim commands

2021-04-19 Thread Marc Weber
:sh des start a shell, if you quit it you should be back i vim. There are various plugins/ extensions  which provide a window with a terminal if you need to keep something running. https://neovim.io/doc/user/nvim_terminal_emulator.html :h terminal.txt (?) Alternatives  :!cmd  or ctrl-z then

Re: Some basic Vim commands

2021-04-19 Thread Julius Hamilton
Thanks very much. I had some success with Tmux, actually. Is there any way to have tabs inside of a split window? I currently have tabs one layer above a split, so if I switch tabs, the split is gone and a single buffer fills the screen. Thanks very much, Julius On Mon, Apr 19, 2021, 15:59 Marc

Re: Some basic Vim commands

2021-04-19 Thread Gary Johnson
On 2021-04-19, Julius Hamilton wrote: > Is there any way to have tabs inside of a split window? I currently have tabs > one layer above a split, so if I switch tabs, the split is gone and a single > buffer fills the screen. No. A tab contains one or more windows; windows cannot contain tabs. Se

Re: Some basic Vim commands

2021-04-19 Thread 'Jürgen Krämer' via vim_use
Hi, Julius Hamilton schrieb am 19.04.2021 um 15:33: > Thanks very much. I plan on reading through this soon, when I have the time. > > I was also curious, I created a split screen with CTRL-W s. But in the lower > screen, if I'd like a terminal running there, when I type :sh, the entire Vim > a