Created
November 6, 2018 04:07
-
-
Save sarahbkim/dc4d3b86ffb9ed71aa53b4f11960f10f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Section: General Config {{{1 | |
" ---------------------------- | |
set shell=zsh " Set bash as the prompt for Vim | |
set backspace=2 " Backspace deletes like most programs in insert mode | |
set ruler " show the cursor position all the time | |
set laststatus=2 " Always display the status line | |
set shiftround | |
set scrolloff=3 | |
set list listchars=tab:»·,trail:· " Display extra whitespace characters | |
set hidden | |
set inccommand=nosplit | |
" Line numbers | |
set number | |
set numberwidth=5 | |
" Highlight search matches | |
set hlsearch | |
" Make it obvious where 120 characters is {{{2 | |
" Lifted from StackOverflow user Jeremy W. Sherman | |
" http://stackoverflow.com/a/3765575/2250435 | |
" Open new split panes to right and bottom, which feels more natural {{{2 | |
set splitbelow | |
set splitright | |
" }}} | |
" Section: Load vim-plug plugins {{{ | |
" Specify plugins {{{2 | |
call plug#begin() | |
" UI {{{3 | |
Plug 'vim-airline/vim-airline' " Handy info | |
Plug 'junegunn/goyo.vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'jacoborus/tender.vim' | |
" Editing {{{3 | |
Plug 'tpope/vim-surround' " Change word surroundings | |
Plug 'tpope/vim-repeat' | |
Plug 'tpope/vim-endwise' | |
call plug#end() | |
" Load plugin configurations {{{2 | |
" For some reason, a few plugins seem to have config options that cannot be | |
" placed in the `plugins` directory. Those settings can be found here instead. | |
" vim-airline {{{3 | |
let g:airline_powerline_fonts = 1 " Enable the patched Powerline fonts | |
" Section: Theme {{{ | |
syntax enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment