Question: When I open a new file using `vi` command:

```
vi <new file name>

```

After entering into file and typing the data I am getting the characters like `A`, `B`, `C`, `D` when I use `<`, `>` arrows in order to move up the line or down the line

Answer: 
Alternative way to solve this is by creating a vimrc file:

```
# vi ~/.vimrc

```

And adding the following line in it:

```
set nocompatible

```

This should fix your issue.
I solved it by installing `vim`:

```
sudo apt-get install vim

```