-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
57 lines (45 loc) · 1.61 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
" ____ _ _ _ __ ___
" / ___| | __ _ __ _ (_| )___ \ \ / (_)_ __ ___ _ __ ___
" | | _| |/ _` |/ _` || |// __| \ \ / /| | '_ ` _ \| '__/ __|
" | |_| | | (_| | (_| || | \__ \ \ V / | | | | | | | | | (__
" \____|_|\__,_|\__,_|/ | |___/ \_/ |_|_| |_| |_|_| \___|
" |__/
call plug#begin('~/.vim/plugged')
"Non-theme related plugins
"GIT related
Plug 'airblade/vim-gitgutter'
"Better line numbers
Plug 'myusuf3/numbers.vim'
"Fuzzy search
Plug 'junegunn/fzf'
"Theme related plugins
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()
" Related to themes and settings for plugins
colorscheme dracula
set termguicolors
let g:airline_theme='dracula'
let g:airline_powerline_fonts=1
""" Vanilla vim configuration """
syntax enable " enable syntax highlighting
set autoindent " enables indents to persist among lines
set showmatch " highlights pairs
set wildmenu " nice menu for filesearch etc
set noswapfile " disable creation of swapfile
set hlsearch " highlights what you search with '/'
set cc=80 " line at 80 columns
set nowrap " disable word wrapping
" Clipboard from OSX integration
set clipboard=unnamed
" Working with tabs
set tabstop=2
set shiftwidth=2
set expandtab
" stopping myself from using the arrow keys
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
autocmd BufWritePre * :%s/\s\+$//e