Screen and vim updates for better compatibility
This commit is contained in:
parent
0891d6e364
commit
706ce59753
36
screenrc
36
screenrc
@ -1,45 +1,45 @@
|
|||||||
|
# Enable 256-color support inside Screen
|
||||||
|
term screen-256color
|
||||||
|
attrcolor b ".I"
|
||||||
|
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
|
||||||
|
defbce on
|
||||||
|
altscreen on
|
||||||
|
set term=screen-256color
|
||||||
|
|
||||||
# Remap Ctrl+A to Ctrl+B
|
# Remap Ctrl+A to Ctrl+B
|
||||||
escape ^Bb
|
escape ^Bb
|
||||||
|
|
||||||
# the following two lines give a two-line status, with the current window highlighted
|
# the following two lines give a two-line status, with the current window highlighted
|
||||||
hardstatus alwayslastline
|
hardstatus alwayslastline
|
||||||
#hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
|
#hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
|
||||||
hardstatus string '%{= kG}[%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}]'
|
hardstatus string '%{= kG}[%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}]'
|
||||||
|
|
||||||
# huge scrollback buffer
|
# huge scrollback buffer
|
||||||
defscrollback 10000
|
defscrollback 10000
|
||||||
|
|
||||||
# no welcome message
|
# no welcome message
|
||||||
startup_message off
|
startup_message off
|
||||||
|
|
||||||
# 256 colors
|
|
||||||
attrcolor b ".I"
|
|
||||||
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
|
|
||||||
defbce on
|
|
||||||
|
|
||||||
# Gray color for region borders
|
# Gray color for region borders
|
||||||
caption string "%{03} "
|
caption string "%{03} "
|
||||||
|
|
||||||
# Get rid of vertical region borders
|
# Get rid of vertical region borders
|
||||||
rendition so "="
|
rendition so "="
|
||||||
|
|
||||||
# mouse tracking allows to switch region focus by clicking
|
|
||||||
mousetrack on
|
|
||||||
|
|
||||||
# default windows
|
# default windows
|
||||||
screen -t Shell1 1 bash
|
screen -t sh 1 bash
|
||||||
select 0
|
select 0
|
||||||
bind c screen 1 # window numbering starts at 1 not 0
|
bind c screen 1 # window numbering starts at 1 not 0
|
||||||
bind 0 select 10
|
bind 0 select 10
|
||||||
|
|
||||||
# get rid of silly xoff stuff
|
# get rid of silly xoff stuff
|
||||||
bind s split
|
bind s split
|
||||||
|
|
||||||
# navigating regions with Ctrl-arrows
|
# navigating regions with Ctrl-arrows
|
||||||
bind h focus left
|
bind h focus left
|
||||||
bind l focus right
|
bind l focus right
|
||||||
bind k focus up
|
bind k focus up
|
||||||
bind j focus down
|
bind j focus down
|
||||||
|
|
||||||
# use yuio keys to resize regions
|
# use yuio keys to resize regions
|
||||||
bind y eval "resize -v 80%"
|
bind y eval "resize -v 80%"
|
||||||
|
25
vimrc
25
vimrc
@ -1,2 +1,25 @@
|
|||||||
set termguicolors
|
" Set desired colorscheme.
|
||||||
colorscheme desert
|
colorscheme desert
|
||||||
|
|
||||||
|
" Optional: set 256 color mode
|
||||||
|
"set termguicolors
|
||||||
|
|
||||||
|
" Turn on code syntax highlighting.
|
||||||
|
syntax on
|
||||||
|
syntax enable
|
||||||
|
|
||||||
|
" Show number lines.
|
||||||
|
set number
|
||||||
|
|
||||||
|
" Tab key uses 4 spaces.
|
||||||
|
set tabstop=4
|
||||||
|
|
||||||
|
" Tab shift with << and >> shows 4 spaces.
|
||||||
|
set shiftwidth=4
|
||||||
|
|
||||||
|
" Automatically indent after new lines.
|
||||||
|
set autoindent
|
||||||
|
|
||||||
|
" Show symbols to indicate tab whitespace.
|
||||||
|
set list
|
||||||
|
set listchars=tab:\:.
|
||||||
|
Loading…
Reference in New Issue
Block a user