Last active
August 29, 2015 14:09
-
-
Save ynakajima/3d4cf0a3e637e52d8c66 to your computer and use it in GitHub Desktop.
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
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab " tabをスペースにする | |
set smarttab | |
set smartindent | |
set showmatch | |
imap <F11> <nop> | |
set pastetoggle=<F11> | |
set number | |
set nobackup | |
set noswapfile | |
syntax on | |
"" 矢印キー無効化 | |
noremap <Up> <Nop> | |
noremap <Down> <Nop> | |
noremap <Left> <Nop> | |
noremap <Right> <Nop> | |
"" タブ、空白、改行の可視化 | |
set list | |
set listchars=tab:>.,trail:.,eol:¶,extends:>,precedes:<,nbsp:% | |
"""""""""""" | |
"" NeoBudle | |
"""""""""""" | |
" Note: Skip initialization for vim-tiny or vim-small. | |
if !1 | finish | endif | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
" Required: | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
" Let NeoBundle manage NeoBundle | |
" Required: | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
" My Bundles here: | |
" Refer to |:NeoBundle-examples|. | |
" Note: You don't set neobundle setting in .gvimrc! | |
" molkai | |
NeoBundle 'tomasr/molokai' | |
" powerline | |
NeoBundle 'alpaca-tc/alpaca_powertabline' | |
NeoBundle 'Lokaltog/vim-powerline' | |
" neocomplcache | |
NeoBundle 'Shougo/neocomplcache' | |
" vim-indent-guides | |
NeoBundle 'nathanaelkane/vim-indent-guides' | |
" html5 | |
NeoBundle 'othree/html5.vim' | |
" css3 | |
NeoBundle 'hail2u/vim-css3-syntax' | |
" javascript | |
NeoBundle 'pangloss/vim-javascript' | |
NeoBundleLazy 'jelera/vim-javascript-syntax', {'autoload':{'filetypes':['javascript']}} | |
NeoBundle 'moll/vim-node' | |
NeoBundle 'mattn/jscomplete-vim' | |
NeoBundle 'myhere/vim-nodejs-complete' | |
" typescript | |
NeoBundle 'https://github.com/leafgarland/typescript-vim.git' | |
NeoBundle 'https://github.com/clausreinke/typescript-tools.git' | |
" jade | |
NeoBundle 'digitaltoad/vim-jade' | |
" css3 | |
NeoBundle 'hail2u/vim-css3-syntax' | |
" stylus | |
NeoBundle 'wavded/vim-stylus' | |
" twig | |
NeoBundle 'evidens/vim-twig' | |
" scrooloose/syntastic | |
NeoBundle 'scrooloose/syntastic' | |
" nerdtree | |
NeoBundleLazy "scrooloose/nerdtree", { | |
\ "autoload" : { "commands": ["NERDTreeToggle"] }} | |
call neobundle#end() | |
" Required: | |
filetype plugin indent on | |
" If there are uninstalled bundles found on startup, | |
" this will conveniently prompt you to install them. | |
NeoBundleCheck | |
"" colorscheme | |
colorscheme molokai | |
"" powerline | |
set laststatus=2 | |
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim | |
set guifont=Source\ Code\ Pro\ Light\ for\ Powerline:h14 | |
let g:Powerline_symbols = 'fancy' | |
set t_Co=256 | |
set term=xterm-256color | |
set encoding=utf-8 | |
set termencoding=utf-8 | |
set noshowmode | |
"" neocompletecache | |
let g:neocomplcache_enable_at_startup = 1 | |
" vim-indent-guides | |
let g:indent_guides_auto_colors=1 | |
let g:indent_guides_enable_on_vim_startup=1 | |
let g:indent_guides_guide_size=1 | |
"" vim-nodejs-complete | |
autocmd FileType javascript setlocal omnifunc=nodejscomplete#CompleteJS | |
if !exists('g:neocomplcache_omni_functions') | |
let g:neocomplcache_omni_functions = {} | |
endif | |
let g:neocomplcache_omni_functions.javascript = 'nodejscomplete#CompleteJS' | |
let g:node_usejscomplete = 1 | |
"" syntastic | |
let g:syntastic_mode_map = { 'mode': 'active', | |
\ 'active_filetypes': ['javascript', 'typescript', 'html', 'css'], | |
\ 'passive_filetypes': [] } | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_enable_signs = 1 | |
let g:syntastic_echo_current_error = 1 | |
let g:syntastic_auto_loc_list = 2 | |
let g:syntastic_enable_highlighting = 1 | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
" javascript | |
let g:syntastic_javascript_checkers = ['jshint'] | |
" typescript | |
let g:syntastic_typescript_checkers = ['tsc'] | |
let g:syntastic_typescript_tsc_args= '--module amd --target ES5 --noImplicitAny' | |
" css | |
let g:syntastic_css_checkers = ['csslint'] | |
" C | |
let g:clang_hl_errors = 1 | |
"" </で閉じタグを自動補完 | |
autocmd FileType html inoremap <silent> <buffer> </ </<C-x><C-o> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment