Browse Source

fix HOME END vim

master
FiliN 3 years ago
parent
commit
5a5b333723
  1. 7
      .bashrc
  2. 6
      .config/mc/ini
  3. 6
      .inputrc
  4. 14
      .vimrc

7
.bashrc

@ -13,7 +13,12 @@
WHITE='\[\e[1;37;49m\]'
NOCOL='\[\e[0m\]' # no color
export TERM=xterm-256color
# http://vim.wikia.com/wiki/256_colors_in_vim
if [ -e /usr/share/terminfo/x/xterm+256color ]; then
export TERM='xterm-256color'
else
export TERM='xterm-color'
fi
export EDITOR=vim
export VIEWER=vim

6
.config/mc/ini

@ -83,6 +83,10 @@ editor_stop_format_chars=-+*\\,.;:&>
mcview_eof=
skin=xoria256
safe_overwrite=false
filepos_max_saved_entries=1024
[Layout]
message_visible=0
keybar_visible=1
@ -93,7 +97,7 @@ menubar_visible=1
free_space=1
horizontal_split=0
vertical_equal=1
left_panel_size=87
left_panel_size=106
horizontal_equal=1
top_panel_size=1

6
.inputrc

@ -2,12 +2,12 @@ set show-all-if-ambiguous On
"\e[A": history-search-backward
"\e[B": history-search-forward
# kvt:
## kvt:
"\e[H":beginning-of-line
"\e[F":end-of-line
# rxvt and konsole (i.e. the KDE-app...)
## rxvt and konsole (i.e. the KDE-app...)
"\e[7~":beginning-of-line
"\e[8~":end-of-line
# for linux console
## for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line

14
.vimrc

@ -2,15 +2,21 @@
" Выключить режим совместимости
set nocompatible
set term=xterm-256color
""""""""""""""
" tmux fixes "
"""""""""""""""
" Handle tmux $TERM quirks in vim
if $TERM =~ '^screen-256color'
map <Esc>OH <Home>
if $TERM =~ '^xterm-256color'
map! <Esc>OH <Home>
map <Esc>OF <End>
map! <Esc>OF <End>
map! <Esc>OF <End>
map <esc>OH <home>
cmap <esc>OH <home>
imap <esc>OH <home>
map <esc>OF <end>
cmap <esc>OF <end>
imap <esc>OF <end>
endif

Loading…
Cancel
Save