100 lines
4.2 KiB
VimL
100 lines
4.2 KiB
VimL
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
|