" Vim Keymap file for latin1 accents through dead characters
" Maintainer: Bram Moolenaar
-" Last Change: 2001 Jul 22
+" Last Change: 2006 Mar 29
" All characters are given literally, conversion to another encoding (e.g.,
" UTF-8) should work.
´A Á
^A Â
~A Ã
+:A Ä
'C Ç
´C Ç
`E È
´O Ó
^O Ô
~O Õ
+:O Ö
`U Ù
'U Ú
´U Ú
^U Û
+:U Ü
'Y Ý
´Y Ý
`a à
´a á
^a â
~a ã
+:a ä
'c ç
´c ç
`e è
´o ó
^o ô
~o õ
+:o ö
`u ù
'u ú
´u ú
^u û
+:u ü
'y ý
´y ý
'' '
`` `
^^ ^
~~ ~
+:: :
/* When all lines were selected and deleted do_put() leaves an empty
* line that needs to be deleted now. */
if (empty && *ml_get(curbuf->b_ml.ml_line_count) == NUL)
+ {
ml_delete(curbuf->b_ml.ml_line_count, TRUE);
+
+ /* If the cursor was in that line, move it to the end of the last
+ * line. */
+ if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count)
+ {
+ curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count;
+ coladvance((colnr_T)MAXCOL);
+ }
+ }
#endif
auto_format(FALSE, TRUE);
}
/*
* Start looking for bad word at the start of the line, because we can't
- * start halfway a word, we don't know where the it starts or ends.
+ * start halfway a word, we don't know where it starts or ends.
*
* When searching backwards, we continue in the line to find the last
* bad word (in the cursor line: before the cursor).