-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
75 lines (63 loc) · 2.68 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
filetype plugin indent on
syntax on
runtime macros/matchit.vim
let g:mapleader = "\<Space>"
let g:netrw_banner = 0
let g:netrw_fastbrowse = 0 " https://github.com/tpope/vim-vinegar/issues/13#issuecomment-489440040
let g:netrw_use_errorwindow = 1 " https://github.com/vim/vim/issues/7828
let g:skip_defaults_vim = 1
nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
nnoremap <Leader> <NOP>
nnoremap <Leader>b :set nomore<Bar>:buffers<Bar>:set more<CR>:buffer<Space>
nnoremap <Leader>e :Explore %:p:h<CR>
nnoremap <Leader>q :bwipeout<CR>:redraw<CR>
if has("clipboard")
set clipboard^=unnamed " On mac and Windows, use * register for copy-paste
if has("unnamedplus") " When possible use + register for copy-past.
set clipboard^=unnamedplus " Required vim with support +xterm_clipboard +clipboard
endif
endif
set pastetoggle=<f1>
set background=dark
set nocompatible
set encoding=utf-8 fileformats=unix fileencodings=utf-8,cp1251,koi8-r,cp866
set foldlevel=99 foldmethod=indent " za to toggle, opens all by default
set hidden confirm
set hlsearch incsearch ignorecase smartcase showmatch
set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯЖХЪ;ABCDEFGHIJKLMNOPQRSTUVWXYZ:{},фисвуапршолдьтщзйкыегмцчняхъ;abcdefghijklmnopqrstuvwxyz[]
set laststatus=2 noruler statusline=\%M\%f%=\%l:\%c
set linebreak showbreak=¬
set list listchars=tab:•·,trail:•,nbsp:¤,extends:¦,precedes:¦
set matchtime=1
set mouse= sidescroll=1 " horizontal scroll by symbol (default half screen)
set nobackup noswapfile nowritebackup
set noeb vb t_vb= " https://vim.fandom.com/wiki/Disable_beeping
set notitle nowrap nomodeline
set nowildmenu wildmode=list:longest,full
set shortmess=aI
set splitright splitbelow
set synmaxcol=256 spelllang=en_us
set ttimeout ttimeoutlen=50
set undolevels=200 viminfo=""
set lazyredraw
set regexpengine=1
silent! colorscheme google_dark
silent! set completeopt=menuone,noinsert,noselect
" let g:EditorConfig_preserve_formatoptions = 1
" let g:easygit_enable_command = 1
let g:lsc_popup_syntax = v:false
let g:lsc_reference_highlights = v:false
let g:lsc_server_commands = {
\"go": {"log_level": -1, "command": "gopls"},
\"python": {"log_level": -1, "command": "pyls"},
\}
" Delete trailing spaces before saving.
" Use ":autocmd!" to disable this temporary
autocmd BufWrite * silent! %s/[ \t\r]\+$//
" Restore position cursor after open file
autocmd BufLeave,BufWinLeave * silent! mkview
autocmd BufReadPost * silent! loadview
source ~/.vim/sources/colorcolumn.vim
source ~/.vim/sources/statusline.vim
source ~/.vim/sources/go.vim
source ~/.vim/sources/yaml.vim