Mercurial > vim
annotate runtime/doc/vimtutor-da.1 @ 34674:bfd2c0032686 v9.1.0218
patch 9.1.0218: Unnecessary multiplications in backspace code
Commit: https://github.com/vim/vim/commit/8ede7a069419e0e01368c65a2d0c79d6332aa6cd
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Mar 28 10:30:08 2024 +0100
patch 9.1.0218: Unnecessary multiplications in backspace code
Problem: Unnecessary multiplications in backspace code, as
"col / ts * ts" is the same as "col - col % ts".
Solution: Change "col / ts * ts" to "col - col % ts". Adjust the loop
and the comments ins_bs() to be easier to understand. Update
tests to reset 'smarttab' properly.
(zeertzjq)
closes: #14308
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Mar 2024 10:45:04 +0100 |
parents | 723487cd7876 |
children |
rev | line source |
---|---|
14298
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 .TH VIMTUTOR 1 "2. april 2001" |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 .SH NAVN |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 vimtutor \- Vim-vejledningen |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 .SH SYNOPSIS |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 .br |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 .B vimtutor [\-g] [sprog] |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 .SH BESKRIVELSE |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 .B Vimtutor |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 starter |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 .B Vim\c |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 -vejledningen. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 Det kopierer først vejledningsfilen, så den kan ændres uden at ændre |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 den originale fil. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 .PP |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 .B Vimtutor |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 er nyttig til personer der vil lære deres første |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 .B Vim\c |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 -kommandoer. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 .PP |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 Det valgfrie argument \-g starter vimtutor med gvim fremfor vim, hvis |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 GUI-versionen af vim er tilgængelig, ellers bruges Vim hvis ikke gvim findes. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 .PP |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 Det valgfrie [sprog]-argument er navnet på et sprog, på 2 bogstaver, såsom |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 "da" eller "fi". |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 Hvis [sprog]-argumentet mangler, bruges sproget fra den nuværende lokalitet. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 Hvis der findes er en vejledning på dette sprog, så bruges den. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 Ellers bruges den engelske version. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
28 .PP |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
29 .B Vim |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
30 startes altid i Vi-kompatibel tilstand. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
31 .SH FILER |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
32 .TP 15 |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
33 /usr/local/lib/vim/tutor/tutor[.sprog] |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
34 .B Vimtutor\c |
14347 | 35 -tekstfilerne. |
14298
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
36 .TP 15 |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
37 /usr/local/lib/vim/tutor/tutor.vim |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
38 Vim-scriptet som bruges til at kopiere |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
39 .B Vimtutor\c |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
40 -tekstfilen. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
41 .SH FORFATTER |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
42 .B Vimtutor |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
43 blev oprindeligt skrevet til Vi af Michael C. Pierce og Robert K. Ware, |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
44 Colorado School of Mines med ideer af Charles Smith, |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
45 Colorado State University. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
46 E-mail: bware@mines.colorado.edu. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
47 .br |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
48 Den blev ændret til |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
49 .B Vim |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
50 af Bram Moolenaar. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
51 Oversætternes navne kan ses i tutor-filerne. |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
52 .SH SE OGSÅ |
4a588e3afd4a
Update runtime files, add Danish translations.
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
53 vim(1) |