-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
48 lines (43 loc) · 2.34 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
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'tribela/vim-transparent'
Plug 'wojciechkepka/vim-github-dark'
call plug#end()
"--------------------------------------------------------------------
" HIGHLIGHTING AND SYNTAX
"--------------------------------------------------------------------
set background=dark " Use a dark background by default
syntax on " Enable syntax highlighting
set t_Co=256 " Allow vim to display all colours
set showmatch " Highlight matching parentheses
colorscheme ghdark
let g:gh_color = "soft"
"--------------------------------------------------------------------
" INDENTATION
"--------------------------------------------------------------------
set tabstop=8 " Set the number of visual spaces per tab
set softtabstop=4 " Set the number of spaces a tab counts as
set expandtab " Write tabs as spaces
set autoindent " Turn on auto-indentation
set shiftwidth=4 " Set the number of columns to indent with reindent operations
filetype indent on " Allow loading of language specific indentation
"--------------------------------------------------------------------
" COLOUR COLUMN
"--------------------------------------------------------------------
set colorcolumn=100 " Create a column at the 100 character line
highlight ColorColumn ctermbg=8 guibg=lightgrey
"--------------------------------------------------------------------
" MISCELLANEOUS
"--------------------------------------------------------------------
set relativenumber " Show relative line numbers
set number " Show current line number
set wildmenu " Turn on the autocomplete menu
set mouse=a " Enable mouse support
set ruler " Display the ruler in the bottom right corner
set cursorline " Highlight the current line
set backspace=indent,eol,start " Allow backspace to work across lines
set report=0