退格键在Macvim Shell中不起作用 [英] backspace not working in macvim shell
本文介绍了退格键在Macvim Shell中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用:shell
命令放入macvim中的shell时,使用退格键不会删除,而是插入特殊字符,如下面的屏幕截图所示:
When I drop into the shell in macvim using the :shell
command, using the backspace key doesn't delete, instead special characters are inserted as in the screenshot below:
我在我的.vimrc
中尝试过set nocompatible
,但是没什么区别.
I have tried set nocompatible
in my .vimrc
but it made no difference.
有什么办法解决这个问题吗?
Any idea how to fix this?
我的.bashrc
/.bash_profile
在下面
alias ll='ls -al'
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1
# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color
我的.vimrc
在下面:
execute pathogen#infect()
execute pathogen#helptags()
syntax on
filetype plugin indent on
set number
set hidden
let mapleader="\<Space>"
" set colour scheme
set background=dark
colorscheme solarized
" NERDTree config
map <F5> :NERDTreeToggle<CR>
let NERDTreeIgnore=['^__py.*']
推荐答案
使用
stty erase <Backspace>
此方法有效时,您可以将其添加到$HOME/.bashrc
When this works, you can add it in your $HOME/.bashrc
这篇关于退格键在Macvim Shell中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文