mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
fix for arrow keys in command-t under screen
This commit is contained in:
parent
d32368bee8
commit
fae76d3a93
1 changed files with 14 additions and 3 deletions
17
vimrc
17
vimrc
|
|
@ -28,7 +28,8 @@ if has('gui_running') "GUI specific settings
|
|||
|
||||
else "non-GUI
|
||||
set background=dark
|
||||
set showtabline=0 "no tab bar
|
||||
set showtabline=1 "automatic tab bar
|
||||
set mouse=a "mouse support
|
||||
endif
|
||||
|
||||
"color theme
|
||||
|
|
@ -40,9 +41,15 @@ let g:solarized_termtrans=1
|
|||
colorscheme solarized
|
||||
|
||||
"special case fixes
|
||||
"if &term =~ "vt100"
|
||||
if &term =~ "vt100"
|
||||
" let &term="xterm"
|
||||
"endif
|
||||
endif
|
||||
|
||||
if &term =~ "screen"
|
||||
"fix for cursor keys in e.g Command-T
|
||||
"the one described in :help vt100-cursor-keys does not work
|
||||
let &term="xterm"
|
||||
endif
|
||||
|
||||
"if &term =~ "xterm"
|
||||
" if has("terminfo")
|
||||
|
|
@ -103,10 +110,14 @@ autocmd FileType make set noexpandtab "makefiles need tabs
|
|||
"swap files
|
||||
"set directory=/var/tmp,.
|
||||
|
||||
"buffer management
|
||||
set swb=usetab "make :sb <filename> go to tabs too
|
||||
|
||||
"key mappings
|
||||
let mapleader = ','
|
||||
|
||||
"Command-T mappings
|
||||
let g:CommandTMatchWindowReverse=1
|
||||
let g:CommandTAcceptSelectionTabMap='<CR>'
|
||||
let g:CommandTAcceptSelectionMap='<C-r>'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue