-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
210 lines (158 loc) · 4.93 KB
/
.vimrc
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
let mapleader = ","
" Install PlugInstall before getting into
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Call the .vimrc.plug file
source ~/.vimrc.plug
" source ~/install.sh
" Have Access to copy and past outside from vim
set clipboard=unnamedplus
" enable syntax highlighting
" set term=ansi
syntax enable
" Setting whitespace to be shown
set list
"
set listchars=tab:>-
" Setting Python space/tab/trail errors on
let python_space_errors = 1
let python_no_trail_space_error = 1
let pytthon_no_tab_space_error = 1
"COLORS
" SETTING COLORS
" Settung TabLineSel Color
hi TabLineSel ctermfg=Black ctermbg=Green
" Setting Search Color
hi Search cterm=italic ctermfg=white ctermbg=Blue
hi Identifier ctermfg=white ctermbg=Blue
" Setting Pmenu Colors
hi Pmenu ctermfg=white ctermbg=Green
" Selected Item color
hi PmenuSel ctermfg=white ctermbg=Blue
" scrollbar color
hi PmenuSbar ctermfg=white ctermbg=LightBlue
" scrollbur thumb color
hi PmenuThumb ctermfg=blue ctermbg=LightGreen
" Ended Pmenu Color Settings
" WildMenu Color Settings (Command Suggestions With Tab)
hi WildMenu ctermfg=white ctermbg=blue
hi Menu ctermfg=white ctermbg=red
hi StatusLine ctermfg=LightGreen ctermbg=black
" Settings Todo colors
hi Todo guifg=white guibg=#FF7F50
" END OF SETTING COLORS
""" COLORS
" Setting Relative Numbers
set number relativenumber
" set tab = 4 spaces
set ts=4
" Right And Left Screen Columns
set sidescrolloff=10
" Enable line wrap
set wrap
" Display command line's tab complete options as menu
set wildmenu
" Set title for file
set title
" Enable mouse
set mouse=a
" Always show cursor position
set ruler
" Automatically re-read files if unmodified inside Vim
set autoread
" Set maxtabs
set tabpagemax=10
" indent when moving to the next line while writing code
set autoindent
" tabs into spaces
set expandtab
" when << or >> shift lines by 4 spaces
set shiftwidth=4
" show visual line under the cursor's current line
set cursorline
" show matching part for [], {}, ()
set showmatch
" enable Python syntax highliting features
let python_highlight_all = 1
" python def host
let g:python3_host_prog='/usr/bin/python3'
" scrolloff
set scrolloff=20
" Display Options
set showcmd
" Set Encoding to UTF-8
set encoding=utf-8
" Highlight matching search patterns
set hlsearch
" Enable incremental search
set incsearch
" Igore case when searching
set ignorecase
" Automatically switch search to case-sensitive when search query contains an uppercase letter.
set smartcase
" Tab maps
map <C-W-P> : tabnew<CR>
" map <C-n> : tabn<CR>
" map <C-b> : tabp<CR>
" End of Tab maps
" ---> YouCompleteMe <--- configs
let g:ycm_key_list_select_completion = [ '<C-n>', '<Down>' ]
let g:ycm_key_list_previous_completion = [ '<C-p>', '<Up>' ]
let g:SuperTabDefaultCompletionType = '<C-n>'
" End of ---> YouCompleteMe <--- configs
" ---> NERDTree <--- configs
" map <Leader>n <plug>NERDTreeTabsToggle<CR>
let g:NERDTreeWinPos = "left"
let g:NERDTreeWinSize = 60
" let g:nerdtree_tabs_smart_startup_focus = 1
" let g:nerdtree_tabs_autoclose = 1
" let g:nerdtree_tabs_autofind = 1
let NERDTreeIgnore = [ '__pycache__', '\.pyc$', '\.o$', '\.swp', '*\.swp', 'node_modules/' ]
let NERDTreeShowHidden = 1
map <Leader>r :NERDTreeFind<CR>
let g:NERDTreeGitStatusIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ "Unknown" : "?"
\ }
" autocmd StdinReadPre * let s:std_in=1
" autocmd VimEnter * if !isdirectory(argc()) | NERDTree | endif
" && !exists("s:stdn_in")
" let g:nerdtree_tabs_open_on_console_startup = 1
" End ---> NERDTree <--- configs
" ---> Ultisnips configs <---
let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
" ---> End of Ultisnips configs <---
" ---> Tags autofill <--- configs
let g:closetag_filenames = '*.html,*.xhtml,*.xml,*.vue,*.phtml,*.js,*.jsx,*.coffee,*.erb'
" ---> End of Tags autofill<---
" Set automatically open vertical terminal on right side
vert botright term
call term_start('stoponexit', {'term_finish': 'close', })
" Code folding options {
nmap <leader>f0 :set foldlevel=0<CR>
nmap <leader>f1 :set foldlevel=1<CR>
nmap <leader>f2 :set foldlevel=2<CR>
nmap <leader>f3 :set foldlevel=3<CR>
nmap <leader>f4 :set foldlevel=4<CR>
nmap <leader>f5 :set foldlevel=5<CR>
nmap <leader>f6 :set foldlevel=6<CR>
nmap <leader>f7 :set foldlevel=7<CR>
nmap <leader>f8 :set foldlevel=8<CR>
nmap <leader>f9 :set foldlevel=9<CR>
" current open
map fo :foldopen <CR>
map fc :foldclose <CR>
" }
" Tab navigation