all repos

dotfiles @ baed534f32d0b3af4e4a14592944903b468f2e33

i use rach linux btw

dotfiles/vimrc (view raw)

1
call plug#begin('~/.vim/plugged')
2
Plug 'klen/python-mode', { 'for': 'python' }
3
Plug 'vim-ruby/vim-ruby', { 'for': 'ruby' }
4
Plug 'fatih/vim-go', { 'for': 'go' }
5
Plug 'iamcco/markdown-preview.vim', { 'for': 'markdown' }
6
Plug 'airblade/vim-gitgutter'
7
Plug 'tpope/vim-fugitive'
8
Plug 'jiangmiao/auto-pairs'
9
Plug 'flazz/vim-colorschemes'
10
Plug 'kien/ctrlp.vim'
11
call plug#end()
12
13
set number
14
syntax on
15
set incsearch
16
set hlsearch
17
set ignorecase
18
set smartcase
19
set nocompatible
20
set ruler
21
set mouse=a
22
set hidden
23
set autoindent
24
set smartindent
25
set history=150
26
set termencoding=utf8
27
set guifont=DroidSansMono\ Nerd\ Font\ 11
28
set t_Co=256
29
set background=dark
30
colorscheme OceanicNext
31
"Tab for python
32
set tabstop=4 
33
set shiftwidth=4
34
set smarttab
35
set expandtab
36
37
"Maping chenge window
38
map <C-j> <C-W>j
39
map <C-k> <C-W>k
40
map <C-H> <C-W>h
41
map <C-L> <C-W>l
42
"Maping Russian letters
43
map ш i
44
map м v
45
map ч x
46
map в d
47
map р h
48
map о j
49
map л k
50
map д l
51
"MarkDownPreview
52
nmap <silent> <F8> <Plug>MarkdownPreview 
53
imap <silent> <F8> <Plug>MarkdownPreview 
54
nmap <silent> <F9> <Plug>StopMarkdownPreview 
55
imap <silent> <F9> <Plug>StopMarkdownPreview 
56
57
"Delate excess spase for python files
58
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
59
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class