Skip to content

Instantly share code, notes, and snippets.

@fuxu
Last active October 14, 2015 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fuxu/6a0c26ed066384736dd7 to your computer and use it in GitHub Desktop.
Save fuxu/6a0c26ed066384736dd7 to your computer and use it in GitHub Desktop.
vimrc
syntax on
set expandtab
set tabstop=4
set shiftwidth=4
set autoindent
set smartindent
set foldmethod=indent
set bs=2
set hlsearch
set ruler
set encoding=utf-8
set nocompatible
colo desert
" set binary
" set noendofline
set tags=tags;/
filetype off
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Plugin 'gmarik/vundle'
Plugin 'mattn/emmet-vim'
" Track the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
" forked from 'honza/vim-snippets'
Plugin 'fuxu/vim-snippets'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
let g:snips_author = 'Fu Xu ( fuxu@fuxu.name )'
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
Plugin 'Tabular'
Plugin 'fatih/vim-go'
filetype plugin indent on
autocmd FileType html setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType xhtml setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2 softtabstop=2
autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 softtabstop=2
let mapleader = ";"
cmap <C-t> Tab /
map <C-t> :Tab /
map ft :set ft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment