-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
39 lines (31 loc) · 788 Bytes
/
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
" ====== INIT START ======
let mapleader = ","
call plug#begin()
Plug 'bfrg/vim-cpp-modern'
Plug 'sheerun/vim-polyglot'
Plug 'itchyny/lightline.vim'
Plug 'mhinz/vim-startify'
Plug 'easymotion/vim-easymotion'
Plug 'vhquan/candycode'
call plug#end()
filetype plugin indent on
syntax on
set noshowmode
set laststatus=2
set t_Co=256
set background=dark
if !has("gui_running")
colorscheme candycode
end
set hlsearch
set incsearch
set number
set ts=4 sw=4 sts=4
set et ai si
set textwidth=78
set backspace=indent,eol,start
set wildmode=list:longest,full
autocmd filetype cpp nnoremap <F5> :w <bar> !g++ -std=c++17 -O2 -Wall % -o %:r && ./%:r <CR>
set nocompatible
" Disable automatic commenting on newline
auto FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o