jaredpar/VsVim — Issue #769: displaying of last line causes confusion with visual mode
Author: asaveljevs
Created: 2012-02-16 01:07:40+00:00
State: open

Suppose we have the following file with four lines, where each line has a line terminator:

```c++
void foo()
{
printf("bar\n");
}
```

Vim would display this file using four rows. However, Visual Studio and other Windows-based editors actually show five rows and allow the cursor to move into the fifth row, like so:

```c++
void foo()
{
printf("bar\n");
}
X
```

(Here, `X` shows the position of the cursor.)

This is not always good when working with VsVim. For instance, if we now enter visual mode with `Shift+V` and try to move up with `k`, we will not get anywhere. Moreover, if we try to break out of the visual mode with ``, we will get a popup saying "count Parameter name: Invalid Line Number".

The exception has to be fixed, of course, but it would be even more nice if VsVim could provide a Vim-like displaying of the last line (i.e., display the above four-line file with four rows instead of five).