all repos

dotfiles @ ad443ef088214004149b277d9d8173b280020deb

i use rach linux btw

dotfiles/vimrc (view raw)

1
call plug#begin('~/.vim/plugged')
2
Plug 'jiangmiao/auto-pairs'             " Automapic closing of quotes
3
Plug 'flazz/vim-colorschemes'           " ColorChemes pack
4
Plug 'airblade/vim-gitgutter'           " Git indecator
5
call plug#end()
6
7
set nocompatible    " be iMproved
8
9
set number          " Number line
10
set relativenumber  " Number line
11
12
syntax on           " Support syntax
13
set mouse=a         " Mousr support
14
set ruler           " Cursor position
15
set t_Co=256        " Enable 265 colors
16
17
set encoding=utf-8  " Use utf-8 encoding
18
set fileencodings=utf8,cp1251
19
20
set cursorline      " The line with the cursor will be highlighted
21
set wrap            " Line wrappingv
22
set linebreak       " Line wrappingv
23
24
set nobackup        " Disable backup files
25
set noswapfile      " Disable *.swp files
26
set history=1000    " History size 1000 edits
27
set autoread        " Auto reade file for edit
28
29
set showmode
30
set showcmd
31
32
" Tab
33
set tabstop=4       " Tab size 4
34
set shiftwidth=4    " Tab size 4
35
set softtabstop=4   " Tab size 4
36
set expandtab       " Tab consist of space
37
set smarttab
38
set autoindent
39
40
41
" Search
42
set incsearch       " Highlighted
43
set ignorecase      " Highlighted
44
set smartcase   " Smart Rigger
45
46
" Buffers
47
set hidden
48
set smartindent	
49
50
set visualbell t_vb=    " Mute Vim
51
52
" ColoerCheme
53
set background=dark
54
colorscheme OceanicNext
55
" Color cheme list
56
" Dark: adventurs, Atelier_DuneLight, colorsbox-material, colorsbox-faff, OceanicNext, gruvbox, Monokai, material
57
" Light: newspaper, wikipedia, Atelier_CaveLight, mac_classic
58
" Outher: off
59
60
""""""""""
61
" MAPING "
62
""""""""""
63
let mapleader=','   " Leader key
64
65
" Smart way to move between windows
66
map <C-j> <C-W>j
67
map <C-k> <C-W>k
68
map <C-h> <C-W>h
69
map <C-l> <C-W>l
70
71
" Tabs
72
map <leader>tn :tabnew<CR>      " Create new tab
73
map <leader>to :tabonly<CR>     " Kill all tab
74
map <leader>tc :tabclose<CR>    " Tab kill
75
map <leader>1 :tabn 1<CR>       " Change tab
76
map <leader>2 :tabn 2<CR>       " Change tab
77
map <leader>3 :tabn 3<CR>       " Change tab
78
map <leader>4 :tabn 4<CR>       " Change tab
79
map <leader>5 :tabn 5<CR>       " Change tab
80
map <leader>6 :tabn 6<CR>       " Change tab
81
map <leader>7 :tabn 7<CR>       " Change tab
82
map <leader>8 :tabn 8<CR>       " Change tab
83
map <leader>9 :tabn 9<CR>       " Change tab
84
map <leader>0 :tablast<CR>      " Change tab
85
86
" Russian letters
87
map ш i
88
map м v
89
map ч x
90
map в d
91
map р h
92
map п g
93
map о j
94
map л k
95
map д l
96
97
" Bufer
98
nnoremap <C-N> :bnext<CR>
99
nnoremap <C-P> :bprev<CR>
100
101
" Unmap arrows
102
noremap <Up> <NOP>
103
noremap <Down> <NOP>
104
noremap <Left> <NOP>
105
noremap <Right> <NOP>
106
107
""""""""
108
" GVIM "
109
""""""""
110
if has("gui_running")
111
    set guioptions -=m
112
    set guioptions -=T
113
    map <leader>p "+gP          " Past test in buffer
114
    map <C-Tab> :tabnext<cr>    " Change tab
115
    map <C-S-Tab> :tabprev<cr>  " Change tab
116
endif
117
118
" Python
119
let python_highlight_all = 1
120
autocmd BufWritePre *.py normal m`:%s/\s\+$//e `
121
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class