* Added /etc/sysless with settings to make backspace work correctly in
less. * Added /etc/vim/vimrc. Besides fixing key mappings it also disables compatibility mode and adjusts some settings to make using vi a more pleasant experience. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26028 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f0d8960faa
commit
539903c55b
@ -288,9 +288,12 @@ AddFilesToHaikuImage beos etc artwork : $(svgFiles) ;
|
||||
local etcFiles = inputrc profile teapot.data ;
|
||||
etcFiles = $(etcFiles:G=etc) ;
|
||||
SEARCH on $(etcFiles) = [ FDirName $(HAIKU_TOP) data etc ] ;
|
||||
etcFiles += <etc>termcap ;
|
||||
etcFiles += <etc>termcap <etc>sysless <etc>sysless.in ;
|
||||
AddFilesToHaikuImage beos etc : $(etcFiles) ;
|
||||
|
||||
SEARCH on <etc>vimrc = [ FDirName $(HAIKU_TOP) data etc vim ] ;
|
||||
AddFilesToHaikuImage beos etc vim : <etc>vimrc ;
|
||||
|
||||
local fortuneFiles = Art Computers Education Food Fortunes Goedel Haiku
|
||||
Humorists Kids Law "Linux cookies" Love Magic Medicine Miscellaneous
|
||||
News "One Liners" "OS Fortunes" Pets Platitudes Riddles "Songs & Poems"
|
||||
|
29
data/etc/vim/vimrc
Normal file
29
data/etc/vim/vimrc
Normal file
@ -0,0 +1,29 @@
|
||||
" highlight matching brackets
|
||||
set showmatch
|
||||
|
||||
" status line: show line/column and current mode
|
||||
set ruler
|
||||
set showmode
|
||||
|
||||
" required to be able to use keypad keys and map missed escape sequences
|
||||
set esckeys
|
||||
|
||||
" be user-friendly instead of compatible
|
||||
set nocompatible
|
||||
|
||||
" backspace shall remove anything in insert mode
|
||||
set backspace=indent,eol,start
|
||||
|
||||
" keys in insert mode
|
||||
map! <Esc>OA <Up>
|
||||
map! <Esc>OB <Down>
|
||||
map! <Esc>OC <Right>
|
||||
map! <Esc>OD <Left>
|
||||
map! <Esc>OH <Home>
|
||||
map! <Esc>OF <End>
|
||||
map! <Esc>[5~ <PageUp>
|
||||
map! <Esc>[6~ <PageDown>
|
||||
map! <BS>
|
||||
|
||||
" keys in command mode
|
||||
map X
|
@ -1,4 +1,18 @@
|
||||
SubDir HAIKU_TOP src data etc ;
|
||||
|
||||
# generate /etc/sysless
|
||||
actions LessKey
|
||||
{
|
||||
lesskey -o $(1) $(2)
|
||||
}
|
||||
|
||||
local syslessIn = <etc>sysless.in ;
|
||||
SEARCH on $(syslessIn) = $(SUBDIR) ;
|
||||
local sysless = <etc>sysless ;
|
||||
MakeLocateArch $(sysless) ;
|
||||
Depends $(sysless) : $(syslessIn) ;
|
||||
LessKey $(sysless) : $(syslessIn) ;
|
||||
|
||||
|
||||
SubInclude HAIKU_TOP src data etc keymaps ;
|
||||
SubInclude HAIKU_TOP src data etc timezones ;
|
||||
|
6
src/data/etc/sysless.in
Normal file
6
src/data/etc/sysless.in
Normal file
@ -0,0 +1,6 @@
|
||||
#command
|
||||
\177 back-screen
|
||||
^H back-screen
|
||||
#line-edit
|
||||
\177 backspace
|
||||
^H backspace
|
Loading…
x
Reference in New Issue
Block a user