-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
108 lines (40 loc) · 1.31 KB
/
init.vim
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
" Locate ~/.config/nvim/init.vim
:set number
:set relativenumber
:set autoindent "automatic tabs
:set tabstop=2 "count of spaces
:set shiftwidth=4 "for lines
:set smarttab "where cursol locate for use tabs
:set softtabstop=2 "count of spaces in -- insert --
:set mouse=a "enable mouse
:set encoding=UTF-8
filetype on
call plug#begin()
Plug 'VundleVim/Vundle.vim' "
Plug 'flazz/vim-colorschemes' "Themes
Plug 'ap/vim-css-color'
"fzf, auto spell
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'https://github.com/vim-airline/vim-airline' "Colourful down line
Plug 'https://github.com/preservim/nerdtree' "Tree folers
Plug 'tpope/vim-surround' "For simvols and brackets
Plug 'ap/vim-css-color' "Show color css colpurs
Plug 'ryanoasis/vim-devicons' "Icons
call plug#end()
"Delete spaces
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
"Off voice
set visualbell t_vb=
"keys binds
nnoremap <C-y> :NERDTree<CR>
nnoremap <C-u> :NERDTreeToggle<CR>
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
nnoremap <C-n> :tabnew<CR>
nnoremap <C-q> :q!<CR>
nnoremap <C-s> :wq<CR>
"Theme
:set guifont=Monaco:h18
colorscheme OceanicNext