* Change cursor commands depend on terminal and tmux
Clear search on escape causes bug. After opening vim it deletes the first line after pressing j