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-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

Re: Why vimdiff <() <() reset when terminal is switched?

2021-04-17 Thread Peng Yu
Here is what I have. I have tried to remove ~/.vim/ftdetect ~/.vim/bundle-available ~/.vim/after ~/.vim/plugin. The problem is not gone. When I try to remove ~/.vim, the problem is gone. It is very hard to debug this problem. Could this problem be due to some interaction between two plugins?

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-17 Thread Stan Brown
On 2021-04-17 06:30, Julius Hamilton wrote: > Would you mind providing a simple outline of a function which would > terminate on some basic condition, such as, the next line is a blank > newline? I will read those docs. The first step is for you to clarify your criteria. Then :help :function,

How allow TAB at begining of a line, but expand it to spaces?

2021-04-17 Thread Peng Yu
Hi, If I use the above at the modeline, it will expand all TABs in a line. But I just want to keep the TAB at the beginning of a line. Could anybody show me how to modify the line to get this behavior? Thanks. vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=-1 fileencoding=utf-8: -- --

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

Re: Editing mathematics documents

2021-04-17 Thread Tony Mechelynck
On Sat, Apr 17, 2021 at 3:43 PM Julius Hamilton wrote: > > I have a question related to editing documents inside Vim. If anyone might > have any tips, I'd really appreciate hearing them. > > I'd like to edit PDFs which contain mathematical symbols, not to publish the > papers myself, as I could

Editing mathematics documents

2021-04-17 Thread Julius Hamilton
I have a question related to editing documents inside Vim. If anyone might have any tips, I'd really appreciate hearing them. I'd like to edit PDFs which contain mathematical symbols, not to publish the papers myself, as I could with Latex, but just as a form of note-taking. I'm curious, could

Re: Automating paragraphs (was Re: Dump help pages)

2021-04-17 Thread Julius Hamilton
Thanks very much, really appreciate it. Would you mind providing a simple outline of a function which would terminate on some basic condition, such as, the next line is a blank newline? I will read those docs. I use Vim in Termux, an Android terminal emulator app. I don't know if I have buttons

Re: Autocomplete c lang with vim

2021-04-17 Thread Tony Mechelynck
On Sat, Apr 17, 2021 at 1:02 PM 'M.R.P. zensky' via vim_use wrote: > > Hello I am wondering vim has wonderfull simple autocomplete for. html css > javascript to enable autocomplete you just enter one line of code , however > what about other languages like c c++ javaa python. Is th a simple way

Autocomplete c lang with vim

2021-04-17 Thread 'M.R.P. zensky' via vim_use
Hello I am wondering vim has wonderfull simple autocomplete for. html css javascript to enable autocomplete you just enter one line of code , however what about other languages like c c++ javaa python. Is th a simple way to get autocomplete for vim without a plug in? -- -- You received this