Bash and VIM issue with SFU

After BASH is running , I am facing issue with the key at BASH and VIM and facing delay when trying to launch VIM.

I found this

1. Fix delete, home and end in bash

# Delete
"\e[3~": delete-char

# Home
"\e[1~": beginning-of-line

# End
"\e[4~": end-of-line

2. Fix home and end in vim

To get "^[[1~" you need to press , to get "^[[4~" you need to press .

map ^[[1~ 0
! ^[[1~ ^[0i

^[[4~ $
! ^[[4~ ^[$a

3. Fix backspace and delete in vim

To get "^?" you need to press . The "I" at the end of shortmess disables the startup blurb.

:set t_kb=^?
:set shortmess=filnxtToOI

4. Alias vi and vim

The -X stops vim wasting 10 seconds trying to connect to a non-existant X server.

Appended to /etc/profile.lcl
alias vim="vim -X"
alias vi="vim -X"

Hope this will help to solve your problem.



Popular posts from this blog

Microsoft Azure Backup encountered and internal error. (ID: 130001)

Boot Acronis from PXE

Fedora 19 with kernel 3.10 fail to install vmplayer module.