How do I enable / use spell-checking?
- In your
.vimrc
orinit.vim
add the following lines to enable spell checking for German and English. This will highlight miss-spelled words." Check spelling for English and German. set spell spelllang=en,de
- Add the following lines, to move between miss-spelled words with
zn
andzN
." Move to miss-spelled words with 'zn' / 'zN'. nnoremap zn ]s nnoremap zN [s
- Find the correct word with
z=
- Add words to your dictionary with
zg
. - Mark words as incorrect with
zw
.
How can I save a macro?
To save a macro in register x
:
- In normal mode type
qx
, record the macro and save withq
. - Open your
.vimrc
orinit.vim
in another buffer. - Add
let @x = '...'
. - Replace
...
with"xp
to paste the content of registerx
.
Now register x
will always have the recorded macro on startup.
To use it type @x
in normal mode.
How can I create a number sequence?
Write a column of zeros.
0
0
0
Highlight the column with Ctrl
+ v
.
Type g
followed by Ctrl
+ a
.
1
2
3