reupload
This commit is contained in:
55
linux-compat/home/.inputrc
Normal file
55
linux-compat/home/.inputrc
Normal file
@@ -0,0 +1,55 @@
|
||||
set editing-mode vi
|
||||
|
||||
########### prompt ##############
|
||||
set show-mode-in-prompt on
|
||||
set vi-ins-mode-string \1\e[1 q\2
|
||||
set vi-cmd-mode-string \1\e[2 q\2
|
||||
#################################
|
||||
|
||||
##### remap - colemak-dh #######
|
||||
|
||||
# n -> h
|
||||
set keymap vi-insert
|
||||
"\C-n":backward-delete-char
|
||||
set keymap vi-command
|
||||
"n":backward-char
|
||||
"\C-n":backward-char
|
||||
# e -> k
|
||||
set keymap vi-command
|
||||
"e":previous-history
|
||||
"\C-e":kill-line
|
||||
# i -> j
|
||||
#set keymap vi-insert
|
||||
# "\C-i":accept-line # ascii code conflicts with tab
|
||||
set keymap vi-command
|
||||
"i":next-history
|
||||
# "\C-i":accept-line # ascii code conflicts with tab
|
||||
# o -> l
|
||||
set keymap vi-command
|
||||
"o":forward-char
|
||||
"\C-o":clear-screen
|
||||
|
||||
# k -> n
|
||||
#set keymap vi-insert
|
||||
#"\C-k":menu-complete # bound to intr, use tab
|
||||
set keymap vi-command
|
||||
"k":vi-search-again
|
||||
"K":vi-search-again
|
||||
"\C-k":next-history
|
||||
# j -> e
|
||||
set keymap vi-insert
|
||||
"\C-e":self-insert
|
||||
set keymap vi-command
|
||||
"j":vi-end-word
|
||||
"J":vi-end-word
|
||||
# l -> i
|
||||
set keymap vi-insert
|
||||
"\C-l":complete
|
||||
set keymap vi-command
|
||||
"l":vi-insertion-mode
|
||||
"L":vi-insert-beg
|
||||
# h -> o
|
||||
set keymap vi-insert
|
||||
"\C-h":operate-and-get-next
|
||||
|
||||
#################################
|
||||
48
linux-compat/home/.lesskey
Normal file
48
linux-compat/home/.lesskey
Normal file
@@ -0,0 +1,48 @@
|
||||
###### colemak dh movement #####
|
||||
|
||||
# n -> h
|
||||
#n Help
|
||||
#N Help
|
||||
|
||||
# e -> k
|
||||
e back-line
|
||||
^E back-line
|
||||
E back-line-force
|
||||
|
||||
# i -> j
|
||||
i forw-line
|
||||
J forw-line-force
|
||||
|
||||
# o -> l
|
||||
^O repaint
|
||||
|
||||
|
||||
# k -> n
|
||||
^K forw-line
|
||||
k repeat-search
|
||||
\ek repeat-search-all
|
||||
K reverse-search
|
||||
\eK reverse-search-all
|
||||
#^O^K osc8-forw-search
|
||||
#^Ok osc8-forw-search
|
||||
:k next-file
|
||||
|
||||
# j -> e
|
||||
j forw-line
|
||||
^J forw-line
|
||||
J examine
|
||||
:j examine
|
||||
|
||||
# l -> i
|
||||
# noop
|
||||
|
||||
# h -> o
|
||||
#^H^H osc8-open
|
||||
|
||||
############################
|
||||
|
||||
|
||||
######### custom ###########
|
||||
n left-scroll
|
||||
o right-scroll
|
||||
############################
|
||||
131
linux-compat/home/.vimrc
Normal file
131
linux-compat/home/.vimrc
Normal file
@@ -0,0 +1,131 @@
|
||||
"########## system ###########
|
||||
set nocompatible
|
||||
set ttyfast
|
||||
set encoding=utf-8
|
||||
set mouse=a
|
||||
set autoread
|
||||
au FocusGained,BufEnter * silent! checktime
|
||||
"#############################
|
||||
|
||||
"######### generic ###########
|
||||
|
||||
" status line
|
||||
set showmode
|
||||
set showcmd
|
||||
set ruler
|
||||
|
||||
" syntax hl
|
||||
syntax enable
|
||||
filetype on
|
||||
filetype plugin on
|
||||
|
||||
" lines
|
||||
set number
|
||||
set relativenumber
|
||||
set numberwidth=3
|
||||
set wrap
|
||||
set showmatch " brackets
|
||||
|
||||
" search
|
||||
set hlsearch
|
||||
set incsearch
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" tabs
|
||||
set shiftwidth=4
|
||||
set tabstop=4
|
||||
set softtabstop=0
|
||||
set noexpandtab
|
||||
|
||||
" scroll
|
||||
set scrolloff=5
|
||||
|
||||
" commands
|
||||
set wildmenu
|
||||
set wildmode=list:longest,full
|
||||
set gdefault
|
||||
|
||||
"###########################################
|
||||
|
||||
"############## file-specific ###############
|
||||
autocmd FileType markdown setlocal spell
|
||||
autocmd FileType gitcommit setlocal spell
|
||||
autocmd FileType markdown setlocal complete+=kspell
|
||||
autocmd FileType gitcommit setlocal complete+=kspell
|
||||
"############################################
|
||||
|
||||
"####### remap - colemak-dh #######
|
||||
|
||||
" n -> h
|
||||
noremap n h
|
||||
noremap N H
|
||||
noremap! <C-n> <C-h>
|
||||
" e -> k
|
||||
noremap e k
|
||||
noremap E K
|
||||
noremap! <C-e> <C-k>
|
||||
" i -> j
|
||||
noremap i j
|
||||
noremap I J
|
||||
noremap! <C-i> <C-j>
|
||||
" o -> l
|
||||
noremap o l
|
||||
noremap O L
|
||||
noremap! <C-o> <C-l>
|
||||
|
||||
" k -> n
|
||||
noremap k n
|
||||
noremap K N
|
||||
noremap! <C-k> <C-n>
|
||||
" j -> e
|
||||
noremap j e
|
||||
noremap J E
|
||||
noremap! <C-j> <C-e>
|
||||
" l -> i
|
||||
noremap l i
|
||||
noremap L I
|
||||
noremap! <C-l> <C-i>
|
||||
" h -> o
|
||||
noremap h o
|
||||
noremap H O
|
||||
noremap! <C-h> <C-o>
|
||||
|
||||
"#################################
|
||||
|
||||
"####### custom commands #########
|
||||
" W - Save file as superuser
|
||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||
"#################################
|
||||
|
||||
"######### localization ##########
|
||||
set langmap=йЙцЦуУкКеЕнНгГшШщЩзЗхХъЪфФыЫвВаАпПрРоОлЛдДжЖэЭяЯчЧсСмМиИтТьЬбБюЮ.\\,;qQwWfFpPbBjJlLuUyY;:[{]}aArRsStTgGmMnNeEiIoO'\"xXcCdDvVzZkKhH\\,<.>/?
|
||||
noremap о ь
|
||||
noremap О Ь
|
||||
noremap <C-о> <C-ь>
|
||||
noremap л т
|
||||
noremap Л Т
|
||||
noremap <C-л> <C-т>
|
||||
noremap д н
|
||||
noremap Д Н
|
||||
noremap <C-д> <C-н>
|
||||
noremap ж г
|
||||
noremap Ж Г
|
||||
noremap <C-ж> <C-г>
|
||||
noremap т о
|
||||
noremap Т О
|
||||
noremap <C-т> <C-о>
|
||||
noremap г д
|
||||
noremap Г Д
|
||||
noremap <C-г> <C-д>
|
||||
noremap ь ж
|
||||
noremap Ь Ж
|
||||
noremap <C-ь> <C-ж>
|
||||
noremap н л
|
||||
noremap Н Л
|
||||
noremap <C-н> <C-л>
|
||||
"#################################
|
||||
|
||||
"############# hacks #############
|
||||
|
||||
"################################
|
||||
9
linux-compat/install-via-ssh.sh
Executable file
9
linux-compat/install-via-ssh.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
cd "$(dirname "$(readlink -f -- "$0")")"
|
||||
|
||||
[[ -z "$1" ]] && echo "ERROR: no destination" >&1 && exit 1
|
||||
|
||||
scp -r home/. "$1:/tmp/workspace"
|
||||
ssh "$1" "cp -rfT /tmp/workspace ~/ && rm -rf /tmp/workspace"
|
||||
Reference in New Issue
Block a user