Created
April 13, 2015 02:07
-
-
Save yang-wei/15c5fdd769c12829a959 to your computer and use it in GitHub Desktop.
Minimal vim setting
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
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set nocompatible " Be iMproved | |
set tabstop=2 | |
set expandtab | |
set softtabstop=2 | |
set shiftwidth=2 | |
set smarttab | |
set encoding=utf-8 | |
set autoindent | |
set title " Show title in window bar | |
set wildignore+=*.jpg,*.jpeg,*.gif,*.png,*.gif,*.psd,*.o,*.obj,*.min.js,*.swp | |
set wildignore+=*/smarty/*,*/vendor/*,*/node_modules/*,*/.git/*,*/.hg/*,*/.svn/*,*/.sass-cache/*,*/log/*,*/tmp/*,*/build/*,*/ckeditor/* | |
set wildmenu " Hitting TAB in command line to show completions | |
set wildmode=list:longest | |
set linespace=15 | |
set number | |
nmap <C-b> :NERDTreeToggle<cr> | |
let mapleader=',' | |
let g:mapleader=',' | |
nmap <leader>w : w!<cr> " Fast saves | |
let g:user_emmet_expandabbr_key = '<c-y>' " Use hh to expand emmet shortcut | |
set nofoldenable " Don't fold markdown automatically | |
set clipboard=unnamed " Fixed copy and paste to clipboard error | |
syntax on " Vim syntax highlight | |
let g:vim_markdown_folding_disabled=1 | |
" Speed up viewport scrolling | |
nnoremap <C-e> 3<C-e> | |
nnoremap <C-y> 3<C-y> | |
" should markdown preview get shown automatically upon opening markdown buffer | |
let g:livedown_autorun = 0 | |
" should the browser window pop-up upon previewing | |
let g:livedown_open = 1 | |
" the port on which Livedown server will run | |
let g:livedown_port = 1337 | |
map gm :call LivedownPreview()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment