|
1
|
call plug#begin('~/.vim/plugged') |
|
2
|
Plug 'jiangmiao/auto-pairs' |
|
3
|
Plug 'flazz/vim-colorschemes' " ColorChemes pack |
|
4
|
Plug 'airblade/vim-gitgutter' " Git indecator |
|
5
|
Plug 'kien/ctrlp.vim' " Search file |
|
6
|
Plug 'ap/vim-css-color', {'for': 'css'} " CSS color |
|
7
|
call plug#end() |
|
8
|
|
|
9
|
set number " Number line |
|
10
|
syntax on " Support syntax |
|
11
|
set mouse=a " Mousr support |
|
12
|
set ruler " Cursor position |
|
13
|
set hidden " hidden buffers |
|
14
|
set smartindent " hidden buffers |
|
15
|
set t_Co=256 " Enable 265 colors |
|
16
|
set encoding=utf-8 " Use utf-8 encoding |
|
17
|
|
|
18
|
set cursorline " The line with the cursor will be highlighted |
|
19
|
set wrap " Line wrapping |
|
20
|
set nobackup " Disable backup files |
|
21
|
set noswapfile " Disable *.swp files |
|
22
|
set history=1000 " History size 1000 edits |
|
23
|
set autoread " Auto reade file for edit |
|
24
|
|
|
25
|
" Tab |
|
26
|
set tabstop=4 " Tab size 4 |
|
27
|
set shiftwidth=4 " Tab size 4 |
|
28
|
set expandtab " Tab consist of space |
|
29
|
set smarttab " Tab consist of space |
|
30
|
|
|
31
|
" Search |
|
32
|
set incsearch " Highlighted |
|
33
|
set ignorecase " Highlighted |
|
34
|
set smartcase " Smart Rigger |
|
35
|
|
|
36
|
" ColoerCheme |
|
37
|
set background=dark |
|
38
|
colorscheme gruvbox |
|
39
|
" Color cheme list |
|
40
|
" Dark: adventurs, Atelier_DuneLight, colorsbox-material, colorsbox-faff, OceanocNext, gruvbox, Monokai, vmaterial |
|
41
|
" Light: newspaper, newspaper, wikipedia, Atelier_CaveLight, mac_classic |
|
42
|
" Outher: off |
|
43
|
|
|
44
|
"""""""""" |
|
45
|
" MAPING " |
|
46
|
"""""""""" |
|
47
|
let mapleader=',' " Leader key |
|
48
|
|
|
49
|
" Smart way to move between windows |
|
50
|
map <C-j> <C-W>j |
|
51
|
map <C-k> <C-W>k |
|
52
|
map <C-h> <C-W>h |
|
53
|
map <C-l> <C-W>l |
|
54
|
|
|
55
|
" Tabs |
|
56
|
map <leader>tn :tabnew<cr> |
|
57
|
map <leader>to :tabonly<cr> |
|
58
|
map <leader>tc :tabclose<cr> |
|
59
|
map <leader>tm :tabmove |
|
60
|
|
|
61
|
" Russian letters |
|
62
|
map ш i |
|
63
|
map м v |
|
64
|
map ч x |
|
65
|
map в d |
|
66
|
map р h |
|
67
|
map п g |
|
68
|
map о j |
|
69
|
map л k |
|
70
|
map д l |