-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
107 lines (78 loc) · 2.16 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
" Don't make efforts to make Vim VI-compatible
set nocompatible
" Turn on filetype detection
:filetype on
" Turn on syntax highlighting if more than 1 color is available
if &t_Co > 1
syntax enable
endif
" Turn on auto-indentation
:au FileType c,cpp,java,h,python set cindent
" Show matching brackets
set showmatch
" Set one depending on terminal type
set background=dark
" set background=light
" Makes backspace behave as expected
set backspace=2
"Set the tab key to 4 spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
" Turn on visual wrapping
set wrap
"Wrap at 120 characters
set textwidth=120
" Turn on highlighting for searching
set hlsearch
" Show cursor line and column position
set ruler
" ###############################
" Begin Plugin Section - Plug-Vim
" ###############################
call plug#begin(stdpath('data') . '/plugged')
" Comment/Uncomment tool
Plug 'scrooloose/nerdcommenter'
" Switch to the begining and the end of a block by pressing %
Plug 'tmhedberg/matchit'
" A Tree-like side bar for better navigation
Plug 'scrooloose/nerdtree'
" A cool status bar
Plug 'vim-airline/vim-airline'
" Better syntax-highlighting for filetypes in vim
Plug 'sheerun/vim-polyglot'
" Intellisense engine
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Git integration
Plug 'tpope/vim-fugitive'
" Auto-close braces and scopes
Plug 'jiangmiao/auto-pairs'
" Syntastic, for syntax checking
Plug 'scrooloose/syntastic'
" Nord theme
Plug 'arcticicestudio/nord-vim'
" #############################
" End Plugin Section - Plug-Vim
" #############################
call plug#end()
" #####################
" Plugin Configurations
" #####################
" Powerline Symbols support and different theme for Airline
let g:airline_powerline_fonts = 1
let g:airline_theme='nord'
" Nord theme
colorscheme nord
" Syntastic stuff
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" #########################
" End Plugin Configurations
" #########################