-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
110 lines (81 loc) · 3.78 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
set autoread " reload files when changed on disk
set number " display line numbers on the left side
set relativenumber " set numbers to be relativer to actual position
set laststatus=2 " always display the status line
set showtabline=2
set splitbelow " new splits will be at the bottom or to the right side of the screen
set splitright
set wildchar=<Tab> wildmenu wildmode=full " set TAB the be the autocomplete
set wildignore+=**/node_modules/** " when using :find, should ignore files in node_modules
set path+=** " set current path to be searchable
set list " show trailing space
set listchars=tab:\|.,trail:.,extends:»,precedes:«,nbsp:×
set tabstop=2 " tab use 2 spaces
set expandtab " use space instead of tabs
set shiftwidth=2 " when using the >> or << commands, shift lines by 2 spaces
set guicursor= " makes vim to not change cursor shape
set updatetime=100 " set time for vim to trigger events updates
set t_Co=256 " enable 256 colors
set background=dark " set background
set mouse=a " add mouse suport
syntax enable " enable syntax highlighting
set autoindent
set cursorline " highlights current line
set showmatch " show the matching part of the pair for [] {} and ()
set directory-=. " don't store swapfiles in the current directory
set foldmethod=indent
set nofoldenable
set foldlevel=5
set updatetime=100 " controls the delay that vim can write swap files
let mapleader = ","
" set autochdir " set the working directory to be the same as the file that is been edited
ino ' ''<left> " set autoclose of single quote
if filereadable(expand("~/.config/vim/aliases.vim"))
source ~/.config/vim/aliases.vim
endif
if filereadable(expand("~/.config/vim/filetypes.vim"))
source ~/.config/vim/filetypes.vim
endif
if filereadable(expand("~/.config/vim/skeletons.vim"))
source ~/.config/vim/skeletons.vim
endif
if filereadable(expand("~/.config/vim/coc.vim"))
source ~/.config/vim/coc.vim
endif
set nocompatible " be iMproved, required
filetype plugin on
" Vundle configuration and plugins
"
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" install Vundle bundles
if filereadable(expand("~/.config/vim/bundles.vim"))
source ~/.config/vim/bundles.vim
endif
call vundle#end() " required
filetype plugin indent on " required
if filereadable(expand("~/.config/vim/nerdtree.vim"))
source ~/.config/vim/nerdtree.vim
endif
if filereadable(expand("~/.config/vim/ale.vim"))
source ~/.config/vim/ale.vim
endif
if filereadable(expand("~/.config/vim/test.vim"))
source ~/.config/vim/test.vim
endif
" enable all Python syntax highlighting features
let python_highlight_all = 1
let g:lightline = {
\ 'colorscheme': 'deus',
\}
if &term =~ '256color'
" disable background color erase so that color schemes
" render properly when inside 256-color tmux and GNU screen
set t_ut=
endif
set noshowmode " remove insert info
if has('nvim') || has('termguicolors')
set termguicolors
endif
colorscheme catppuccin_mocha