all repos

dotfiles @ f601a139387d88fe11ad6ae8a3cc825c146b71ca

i use rach linux btw

dotfiles/vimrc (view raw)

1
call plug#begin('~/.vim/plugged')
2
Plug 'scrooloose/nerdtree', { 'on': 'NERTreeToggle' }	"Side bar, tree
3
Plug 'flazz/vim-colorschemes'				"Color thems
4
Plug 'airblade/vim-gitgutter'				"Git startus line
5
Plug 'tpope/vim-fugitive'				"Git comands in vim
6
Plug 'Vimjas/vim-python-pep8-indent', {'for': 'python'}	"Python syntax
7
Plug 'stanangeloff/php.vim', {'for': 'php'}		"PHP syntax
8
Plug 'pangloss/vim-javascript', {'for': 'js'}		"JavaScript syntax
9
Plug 'ap/vim-css-color', {'for': 'css'}			"Hilighting color in css
10
Plug 'auxiliary/vim-layout', {'for': 'sh'}		"BASH syntax
11
Plug 'iamcco/markdown-preview.vim', {'for': 'markdown'} "MarkDown syntax
12
Plug 'elzr/vim-json', {'for': 'json'}			"JSON syntax
13
Plug 'stacruz/sparkup'					"A parser for a condensed HTML
14
Plug 'jiangmiao/auto-pairs'
15
Plug 'kien/ctrlp.vim'
16
call plug#end()
17
18
syntax on
19
set number
20
set ignorecase
21
set hlsearch
22
set incsearch
23
set smartcase
24
set autoindent
25
set smartindent
26
set mouse=a
27
set termencoding=utf8
28
set guifont=DroidSansMono\ Nerd\ Font\ 11
29
set t_Co=256
30
set background=dark
31
colorscheme OceanicNext
32
set nocompatible 
33
filetype off
34
set encoding=utf-8
35
set fileencodings=utf8,cp1251
36
set hidden
37
nnoremap <C-N> :bnext<CR>
38
nnoremap <C-P> :bprev<CR>
39
40
Tab settings for Python, according to the recommendations
41
set tabstop=4 
42
set shiftwidth=4
43
set smarttab
44
set expandtab
45
set softtabstop=4 
46
47
map <C-j> <C-W>j
48
map <C-k> <C-W>k
49
map <C-H> <C-W>h
50
map <C-L> <C-W>l
51
map ш i
52
map м v
53
map ч x
54
map в d
55
map р h
56
map о j
57
map л k
58
map д l
59
60
"All highlight 
61
let python_highlight_all = 1
62
63
"Turn off the sound in Vim
64
set visualbell t_vb=
65
66
"Delate swap vim files
67
set nobackup
68
set noswapfile
69
70
"Delate excess spase for python files
71
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
72
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
73
74
"NerdTree
75
map <C-n> :NERDTreeToggle<CR>
76
let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']
77
let NERDTreeShowHidden=1
78
let g:NERDTreeWinPos="left"
79
let g:NERDTreeDirArrows=0
80
81
"Maping MarkdownPreview
82
nmap <silent> <F8> <Plug>MarkdownPreview
83
imap <silent> <F8> <Plug>MarkdownPreview
84
nmap <silent> <F9> <Plug>StopMarkdownPreview
85
imap <silent> <F9> <Plug>StopMarkdownPreview