Skip to content

Instantly share code, notes, and snippets.

@henrytseng
Last active June 13, 2019 01:47
Show Gist options
  • Save henrytseng/a8550c619461bcb757f51ff48b19ed84 to your computer and use it in GitHub Desktop.
Save henrytseng/a8550c619461bcb757f51ff48b19ed84 to your computer and use it in GitHub Desktop.
Vim configuration
set nocompatible " be iMproved, required
filetype plugin indent on
" Change indentation
set expandtab
set shiftwidth=2
set softtabstop=2
set modelines=0
set nomodeline
" Syntax highlighting
syntax on
" Search
set hlsearch
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)
" Line numbering
set relativenumber
highlight LineNr ctermfg=grey ctermbg=black
" pathogen
execute pathogen#infect()
" markdown
let g:markdown_enable_spell_checking = 0
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](\.(git|hg|svn)|node_modules)$',
\ 'file': '\v\.(exe|so|dll|gitignore)$',
\ 'link': 'some_bad_symbolic_links',
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment