Last active
August 29, 2015 14:16
-
-
Save TomckySan/2b2b583b72dacba0e88c 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
" Note: Skip initialization for vim-tiny or vim-small. | |
if !1 | finish | endif | |
if has('vim_starting') | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" 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! | |
NeoBundle 'scrooloose/nerdtree' | |
NeoBundle 'tomtom/tcomment_vim' | |
NeoBundle 'nathanaelkane/vim-indent-guides' | |
NeoBundle 'scrooloose/syntastic' | |
NeoBundle 'kchmck/vim-coffee-script' | |
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 | |
" Setting for vim-indent-guides | |
let g:indent_guides_enable_on_vim_startup = 1 | |
let g:indent_guides_auto_colors = 1 | |
" Setting for Syntastic | |
let g:syntastic_mode_map = { | |
\ 'mode' : 'passive', | |
\ 'active_filetypes' : ['javascript'], | |
\ 'passive_filetypes' : [] } | |
let g:syntastic_javascript_checkers = ['jshint'] | |
" Open quickfix-window when grep | |
autocmd QuickFixCmdPost *grep* cwindow | |
" Append the following three lines in front of "scriptencoding" | |
set encoding=utf-8 | |
set fileencodings=iso-2022-jp,cp932,sjis,euc-jp,utf-8 | |
set fileformats=unix,mac,dos | |
" If using "Kaoriya", should not be subjected to the above settings. | |
" Then, be a reference to the following link. | |
" https://sites.google.com/site/fudist/Home/vim-nihongo-ban/kaoriya-trouble | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=0 | |
set expandtab | |
set autoindent | |
set backspace=2 | |
set wrapscan | |
set showmatch | |
set wildmenu | |
set formatoptions+=mM | |
let format_allow_over_tw = 1 | |
syntax on | |
set number | |
set ruler | |
set list | |
set listchars=tab:>-,trail:-,eol:$ | |
if has("syntax") | |
syntax on | |
syn sync fromstart | |
function! ActivateInvisibleIndicator() | |
syntax match InvisibleJISX0208Space " " display containedin=ALL | |
highlight InvisibleJISX0208Space term=underline ctermbg=Blue guibg=darkgray gui=underline | |
endfunction | |
augroup invisible | |
autocmd! invisible | |
autocmd BufNew,BufRead * call ActivateInvisibleIndicator() | |
augroup END | |
endif | |
set wrap | |
set laststatus=2 | |
set cmdheight=2 | |
set showcmd | |
set notitle | |
" The following three lines, modified to suit the environment | |
set backupdir="C:\tmp\backup" | |
set undodir="C:\tmp\undo" | |
set directory="C:\tmp\swap" | |
set clipboard=unnamed,autoselect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment