Last active
February 7, 2018 01:54
-
-
Save nakabonne/ae4979d215e8e2abdb9591243c6cc6d4 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
"NeoBundle Scripts----------------------------- | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=/Users/NakaoRyo/.vim/bundle/neobundle.vim/ | |
" Required: | |
call neobundle#begin(expand('/Users/NakaoRyo/.vim/bundle')) | |
" Let NeoBundle manage NeoBundle | |
" Required: | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
" Add or remove your Bundles here: | |
NeoBundle 'Shougo/neosnippet.vim' | |
NeoBundle 'Shougo/neosnippet-snippets' | |
NeoBundle 'tpope/vim-fugitive' | |
NeoBundle 'ctrlpvim/ctrlp.vim' | |
NeoBundle 'flazz/vim-colorschemes' | |
" file tree | |
NeoBundle 'scrooloose/nerdtree' | |
map <C-n> :NERDTreeToggle<CR> | |
" かっこを閉じる | |
NeoBundle 'cohama/lexima.vim' | |
" You can specify revision/branch/tag. | |
NeoBundle 'Shougo/vimshell', { 'rev' : '3788e5' } | |
" 構文チェック | |
NeoBundle 'scrooloose/syntastic' | |
" go用のプラグイン | |
NeoBundle 'fatih/vim-go' | |
" Required: | |
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 | |
"End NeoBundle Scripts------------------------- | |
syntax on | |
set autoindent | |
set smartindent | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
set number | |
" 検索結果をハイライト | |
set hlsearch | |
" OSとクリップボードを共有する | |
set clipboard=unnamed,autoselect | |
" insertモードでdelete出来るように | |
set nocompatible | |
"カーソルを行頭,行末で止まらないようにする | |
set whichwrap=b,s,h,l,<,>,[,] | |
"deleteで削除できるものを指定する | |
" indent : 行頭の空白 | |
" eol : 改行 | |
" start : 挿入モード開始位置より手前の文字 | |
set backspace=indent,eol,start | |
" go-vimの設定 | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_methods = 1 | |
let g:go_highlight_structs = 1 | |
" go保存時に構文チェック | |
let g:syntastic_mode_map = { 'mode': 'passive', | |
\ 'active_filetypes': ['go'] } | |
let g:syntastic_go_checkers = ['go', 'golint'] | |
" エイリアス | |
:command Ge GoErrCheck | |
:command Gi GoImports | |
:imap <C-j> <Esc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment