53 lines
1.1 KiB
VimL
53 lines
1.1 KiB
VimL
" don't try to be vi compatible
|
||
set nocompatible
|
||
|
||
" Show matching brackets when text indicator is over them
|
||
set showmatch
|
||
|
||
" Turn on syntax highlighting
|
||
syntax on
|
||
|
||
" Highlight search results
|
||
set hlsearch
|
||
|
||
" Search while typing
|
||
set incsearch
|
||
|
||
" Show line numbers
|
||
set number
|
||
|
||
" Show file stats
|
||
set ruler
|
||
|
||
" W - Save file as superuser
|
||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||
|
||
|
||
" colemak-dh
|
||
noremap n h
|
||
noremap e k
|
||
noremap i j
|
||
noremap o l
|
||
|
||
noremap k n
|
||
noremap l i
|
||
noremap h o
|
||
noremap j e
|
||
|
||
set langmap=йЙцЦуУкКеЕнНгГшШщЩзЗхХъЪфФыЫвВаАпПрРоОлЛдДжЖэЭяЯчЧсСмМиИтТьЬбБюЮ.\\,;qQwWfFpPbBjJlLuUyY;:[{]}aArRsStTgGmMnNeEiIoO'\"xXcCdDvVzZkKhH\\,<.>/?
|
||
noremap о ь
|
||
noremap л т
|
||
noremap д н
|
||
noremap ж г
|
||
|
||
noremap т о
|
||
noremap г д
|
||
noremap ь ж
|
||
noremap н л
|
||
|
||
" hacks
|
||
set clipboard=unnamedplus
|
||
xnoremap "+y y:call system("wl-copy", @")<cr>
|
||
nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p
|
||
nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p
|