2022-12-25 03:36:59 +02:00
|
|
|
vim9script
|
2019-11-11 15:08:59 +02:00
|
|
|
set nobackup nomodeline backspace=indent,eol,start foldmethod=marker cursorline
|
2021-10-06 18:03:04 +03:00
|
|
|
set list listchars=tab:-->,nbsp:x,trail:*
|
2019-11-11 15:08:59 +02:00
|
|
|
set hlsearch incsearch ignorecase smartcase
|
|
|
|
set scrolloff=3 sidescrolloff=15 sidescroll=1
|
|
|
|
set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab autoindent
|
2022-04-14 01:22:17 +03:00
|
|
|
set wildmenu showcmd ruler laststatus=2 mouse= t_ut= guicursor= t_Co=256
|
2019-11-11 15:08:59 +02:00
|
|
|
set belloff=all colorcolumn=80 formatoptions+=j relativenumber breakindent
|
|
|
|
set keymap=russian-jcukenwintype iminsert=0 imsearch=0
|
2022-12-25 03:36:59 +02:00
|
|
|
&statusline = "[%F] %R%H%W%M %=[%{&fenc}/%{&ff}] %y [%4l/%L:%3v]"
|
|
|
|
g:sh_indent_case_labels = 1
|
2022-12-26 12:14:17 +02:00
|
|
|
g:mapleader = "\<Space>"
|
2019-11-11 16:26:30 +02:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
# mappings
|
2019-11-11 16:26:30 +02:00
|
|
|
map <Space> <NOP>
|
2022-12-25 03:36:59 +02:00
|
|
|
noremap <F1> <Esc>
|
|
|
|
noremap <Leader>/ :noh<CR>
|
|
|
|
noremap <Leader>y "+y
|
|
|
|
noremap <Leader>d "+d
|
|
|
|
noremap <Leader>p "+p
|
|
|
|
noremap <Leader>P "+P
|
|
|
|
noremap q <NOP>
|
2019-11-11 16:26:30 +02:00
|
|
|
noremap! <F1> <Esc>
|
2022-12-25 03:36:59 +02:00
|
|
|
noremap! <C-@> <C-^>
|
|
|
|
noremap! <C-Space> <C-^>
|
2019-11-11 16:26:30 +02:00
|
|
|
nnoremap <Leader>l :setlocal list!<CR>
|
|
|
|
nnoremap <Leader>c :setlocal cursorline!<CR>
|
|
|
|
nnoremap <Leader>w :setlocal wrap!<CR>
|
2019-11-11 15:08:59 +02:00
|
|
|
|
2022-12-25 03:36:59 +02:00
|
|
|
g:plugrc = expand('$HOME/.vimplugrc')
|
|
|
|
g:plugdir = expand('$HOME/.vim/plugged')
|
|
|
|
g:plug = g:plugdir .. '/vim-plug/plug.vim'
|
|
|
|
if filereadable(g:plugrc) && filereadable(g:plug) && v:version >= 703
|
|
|
|
execute 'source' fnameescape(g:plugrc)
|
2019-11-11 15:08:59 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
syntax on
|
|
|
|
filetype plugin on
|