Last active
October 14, 2015 16:36
-
-
Save fuxu/6a0c26ed066384736dd7 to your computer and use it in GitHub Desktop.
vimrc
This file contains hidden or 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
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 ( [email protected] )' | |
" 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