This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
_vimrc
88 lines (72 loc) · 1.41 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
" Basics
set number
set ruler
set showmode
set showcmd
set mouse=a
set nocompatible
" Set language en_US
set langmenu=en_US.UTF-8
language en_US
set encoding=utf-8
filetype indent on
" 256 true color
" set t_Co=256
set termguicolors
" Indents
filetype indent on
set autoindent
set tabstop=2
set shiftwidth=2
set expandtab
set softtabstop=2
" Enable backspace under insert mode
set bs=2
" Word wraps
set cursorline
set wrap
set textwidth=80
set linebreak
set wrapmargin=2
set scrolloff=5
syntax enable
" Status bar
set laststatus=2
" Error warnings
set noerrorbells
set visualbell
" Search
set showmatch
set hlsearch
set incsearch
set ignorecase
set smartcase
" No swap file
set noswapfile
set nobackup
set undofile
" Set menu
set wildmenu
set wildmode=longest:list,full
" Plugins with vim-plugged
call plug#begin('~/.vim/plugged')
" Automatically install missing plugins on startup
if !empty(filter(copy(g:plugs), '!isdirectory(v:val.dir)'))
autocmd VimEnter * PlugInstall | q
endif
Plug 'itchyny/lightline.vim'
Plug 'Rigellute/shades-of-purple.vim'
Plug 'tpope/vim-fugitive'
call plug#end()
let g:shades_of_purple_lightline = 1
let g:lightline = {
\ 'colorscheme': 'shades_of_purple',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }
colorscheme shades_of_purple