-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
99 lines (83 loc) · 4.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
set nocompatible " be iMproved, required
filetype off
set runtimepath+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
"Put your non-Plugin stuff after this line
Plugin 'jlanzarotta/bufexplorer' " Buffer Explorer :BufExplore
Plugin 'tpope/vim-fugitive' " Git wrapper
Plugin 'terryma/vim-multiple-cursors' " Multiple cursors work
Plugin 'edkolev/promptline.vim' " Prompt generator for bash
Plugin 'godlygeek/tabular' " Lineup that text
Plugin 'plasticboy/vim-markdown' " Better Markdown
Plugin 'fatih/vim-go' " Go Syntax
Plugin 'cespare/vim-toml' " TOML Syntax
Plugin 'pangloss/vim-javascript' " Better Javascript
Plugin 'ryanoasis/vim-devicons' " Dev Icons
Plugin 'editorconfig/editorconfig-vim' " EditorConfig
Plugin 'itchyny/lightline.vim' " Lightline, it's simple and does just what it does
Plugin 'airblade/vim-gitgutter' " GitGutter
Plugin 'nathanaelkane/vim-indent-guides' " Indenting is a PITA.
" Colour schemes
Plugin 'ninja/sky' " Vim Sky
Plugin 'dracula/vim' " Dracula!
" All of your Plugins must be added before the following line
call vundle#end()
set guifont=Droid\ Sans\ Mono\ Slashed\ for\ Powerline
set encoding=utf-8
if !has('gui_running')
set t_Co=256
endif
colorscheme sky
set background=dark
let g:lightline = { 'colorscheme': 'Dracula',}
let g:indent_guides_guide_size = 1
"let g:indent_guides_color_change_percent = 3
let g:indent_guides_enable_on_vim_startup = 1
" set number " Show line numbers
set showcmd " show command on last line of screen
set cursorline " Underline the line the cursor is on
set wildmenu " enhanced cmd line completion
set lazyredraw " don't update screen when executing macros
set showmatch " show bracket matches
set backspace=2 " enable <BS> for everything
set completeopt=longest,menuone " Autocompletion options
set complete=.,w,b,u,t,i,d " autocomplete options (:help 'complete')
set hidden " hide when switching buffers, don't unload
set laststatus=2 " always show status line
set noshowmode " don't show mode, since I'm already using airline
set nowrap " disable word wrap
set showbreak="+++ " " String to show with wrap lines
set spelllang=en " spell
set spellfile=~/.vim/spell/en.utf-8.add
set textwidth=0 " don't break lines after some maximum width
set ttyfast " increase chars sent to screen for redrawing
"set ttyscroll=3 " limit lines to scroll to speed up display
set title " use filename in window title
set wildchar=<TAB> " key for line completion
set noerrorbells " no error sound
set splitright " Split new buffer at right
" Folding
set foldenable " Enable Folding
set foldignore= " don't ignore anything when folding
set foldlevelstart=99 " no folds closed on open
set foldmethod=indent " collapse code using indents
set foldnestmax=10 " limit max folds for indent and syntax methods
" Tabs
set tabstop=2 " spaces for <Tab>
set softtabstop=2 " spaces for editing, e.g. <Tab> or <BS>
set expandtab " replace tabs with spaces
" Searches
set hlsearch " highlight search results
set incsearch " search whilst typing
set ignorecase " case insensitive searching
set smartcase " override ignorecase if upper case typed
set more " Stop in list
" Status bar
set laststatus=2 " show ever
set noshowmode " show mode
set showcmd " show cmd
set ruler " show cursor line number
set shm=atI " cut large messages
syntax enable