Я протестировал его с
fun! S()
let l = line(".")
let c = col(".")
%s/\s\+$//e
%s/^M//e
call cursor(l, c)
endfun
, и он отлично работал с Vim 7.3 (Примечание: ^ M вводится с помощью CTRL-V CTRL-M)
Итак, это выглядиткак будто вы не делаете ничего плохого и ничего не забыли.
Теперь, это не поможет вам двигаться дальше, не так ли?
Если у вас есть это сообщение, попробуйте :messages
, возможно, это даст вам подсказку.
Кроме того, :help messages
читает
Press ENTER or type command to continue
This message is given when there is something on the screen for you to read,
and the screen is about to be redrawn:
- After executing an external command (e.g., ":!ls" and "=").
- Something is displayed on the status line that is longer than the width of
the window, or runs into the 'showcmd' or 'ruler' output.
Итак, этот раздел, возможно, стоит прочитать (он длиннее, чем тот, который я вставил).