" git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
filetype off
set mouse=a
set ttymouse=xterm2
set nocompatible
set number
set laststatus=2
set showmatch
set nowrapscan
set list
set listchars=tab:»-,trail:-,eol:↲,extends:»,precedes:«,nbsp:%
set autoindent
set clipboard=unnamedplus,unnamed
set tabstop=4 shiftwidth=4 softtabstop=0 expandtab
set scrolloff=5
set autoread
set noswapfile
set backspace=indent,eol,start
syntax enable
" NeoBundle Stuff
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here:
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'Yggdroot/indentLine'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'jistr/vim-nerdtree-tabs'
NeoBundle 'scrooloose/syntastic.git'
NeoBundle 'itchyny/lightline.vim'
NeoBundle 'jiangmiao/auto-pairs'
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/vimfiler'
NeoBundle 'Shougo/neocomplcache'
NeoBundle 'ujihisa/neco-look'
NeoBundle 'mattn/emmet-vim'
NeoBundle 'othree/html5.vim'
NeoBundle 'hail2u/vim-css3-syntax'
NeoBundle 'jelera/vim-javascript-syntax'
NeoBundle 'elzr/vim-json'
NeoBundle 'marijnh/tern_for_vim', {'build': {'others': 'npm install'}}
call neobundle#end()
" NeoBundle Log
let g:neobundle#log_filename = $HOME . "/.neobundle.log"
" Theme
" let g:solarized_termcolors=256
" NerdTree
let g:NERDTreeShowHidden=1
let g:nerdtree_tabs_open_on_console_startup=1
" liteline
let g:lightline = {'solarized': 'dark'}
" indentLine
"let g:indentLine_color_term = 239
"let g:indentLine_char = '|'
let g:indentLine_fileTypeExclude = ['help', 'nerdtree']
" neocomplcache
" Disable AutoComplPop.
let g:acp_enableAtStartup = 0
" Use neocomplcache.
let g:neocomplcache_enable_at_startup = 1
" Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" Set minimum syntax keyword length.
let g:neocomplcache_min_syntax_length = 3
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'"
" Define dictionary.
let g:neocomplcache_dictionary_filetype_lists = {'default' : ''}
" neco-look
if !exists('g:neocomplete#text_mode_filetypes')
let g:neocomplete#text_mode_filetypes = {}
endif
let g:neocomplete#text_mode_filetypes = {
\ 'rst': 1,
\ 'markdown': 1,
\ 'gitrebase': 1,
\ 'gitcommit': 1,
\ 'text': 1,
\ 'help': 1,
\ 'tex': 1,
\ }
" Show double quotation in JSON
let g:vim_json_syntax_conceal = 0
set background=dark
colorscheme solarized
" NERDTree
nnoremap <C-t> :NERDTreeToggle<Enter>
inoremap <C-t> <ESC>:NERDTreeToggle<Enter>
" neocomplcache
inoremap <expr><C-g> neocomplcache#undo_completion()
inoremap <expr><C-l> neocomplcache#complete_common_string()
" <CR>: close popup and save indent.
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
return neocomplcache#smart_close_popup() . "\<CR>"
endfunction
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
"<C-h>, <BS>: close popup and delete backword char.
inoremap <expr><CR> pumvisible() ? neocomplcache#close_popup() : "<CR>"
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-y> neocomplcache#close_popup()
inoremap <expr><C-e> neocomplcache#cancel_popup()
" Tab settings for particular file types
autocmd filetype javascript setlocal tabstop=2 shiftwidth=2 softtabstop=0 expandtab
autocmd filetype html setlocal tabstop=2 shiftwidth=2 softtabstop=0 expandtab smartindent
" NERDTree Settings
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck