-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
53 lines (42 loc) · 1.42 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
"""""""""""""""Vundle setup""""""""""""""""""""""""""""
let base16colorspace=256
set nocompatible " be iMproved, required for Vundle
filetype off " required for Vundle
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'chriskempson/base16-vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-sensible'
" markdown editing
Plugin 'iamcco/mathjax-support-for-mkdp'
Plugin 'davepagurek/markdown-preview.vim'
Plugin 'drmingdrmer/vim-syntax-markdown'
call vundle#end() " required
"""""""""""""""Vundle setup end"""""""""""""""""""""""
syntax on
colorscheme base16-default-dark
set number
set incsearch
set hlsearch
command! WQ wq
command! Wq wq
command! W w
command! Q q
" backspace modifications, to enable deletion wrapping
set backspace=indent,eol,start
" Markdown preview config
" Only refresh preview on save (default is every edit, jumps around too much for my liking
let g:mkdp_refresh_on_save = 1
" Use Safari for preview (feel free to change to Chrome)
let g:mkdp_path_to_chrome = "open -a Safari"
" Use <Leader>mm to launch preview, <Leader>mn to close
nmap <silent> <Leader>mm <Plug>MarkdownPreview
nmap <silent> <Leader>mn <Plug>StopMarkdownPreview
" Enable MathJax
let g:vim_markdown_math = 1
" 2 space tabs
set tabstop=4 softtabstop=0 expandtab shiftwidth=2 smarttab