Skip to content

Instantly share code, notes, and snippets.

@haiiro-shimeji
Created August 8, 2019 10:37
Show Gist options
  • Save haiiro-shimeji/2904e9bc2232e597bb81c4298d510281 to your computer and use it in GitHub Desktop.
Save haiiro-shimeji/2904e9bc2232e597bb81c4298d510281 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set runtimepath+=~/.vim/bundle/neobundle.vim/
call neobundle#begin(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'Shougo/neocomplcache'
NeoBundle 'tpope/vim-pathogen'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'MarcWeber/vim-addon-local-vimrc'
NeoBundle 'othree/javascript-libraries-syntax.vim'
NeoBundle 'Shougo/vimshell.vim'
NeoBundle 'Shougo/vimproc'
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/neosnippet'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'honza/vim-snippets'
NeoBundle 'fatih/vim-go'
NeoBundle 'leafgarland/typescript-vim'
NeoBundle 'scrooloose/nerdtree'
NeoBundle "ctrlpvim/ctrlp.vim"
call neobundle#end()
" escape aliases
imap jk <ESC>
imap jj <ESC>
set list
set listchars=eol:$,tab:>-
" case insensitive search
set ignorecase
set smartcase
" indent setting
set expandtab
set shiftwidth=4
set tabstop=4
" neocomplcache settings
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_smart_case = 1
" local vimrc settings
let g:local_vimrc = {'names':['.vimrc'],'hash_fun': 'LVRHashOfFile'}
" ///////////////////////////////////////////////////////////////////////////////////////////////
" neosnippet settings
" ///////////////////////////////////////////////////////////////////////////////////////////////
" Plugin key-mappings.
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
" SuperTab like snippets behavior.
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: pumvisible() ? "\<C-n>" : "\<TAB>"
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
" For conceal markers.
if has('conceal')
set conceallevel=2 concealcursor=niv
endif
let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets'
" PHP CodeSniffer setting.
let g:syntastic_php_phpcs_args='--standard=psr2'
" TypeScript
autocmd BufRead,BufNewFile *.ts set filetype=typescript
let g:syntastic_typescript_checkers = ['tslint', 'tsc']
" ///////////////////////////////////////////////////////////////////////////////////////////////
" For vim-go
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_version_warning = 0
execute pathogen#infect()
syntax on
filetype plugin indent on
noremap ' :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment