-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
113 lines (98 loc) · 3.04 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
set autoindent
set number
set nobackup
set list
set listchars=tab:>-,nbsp:%,trail:_
set rtp+=~/.vim/bundle/vundle
set laststatus=2
"ステータス表示 文字コードとか改行コードとか
set statusline=%<%f\ %m%r%h%w
set statusline+=%{'['.(&fenc!=''?&fenc:&enc).']['.&fileformat.']'}
set statusline+=[%{Getff()}]
set statusline+=%=%l/%L,%c%V%8P
function! Getff()
if &ff == 'unix'
return 'LF'
elseif &ff == 'dos'
return 'CR+LF'
elseif &ff == 'mac'
return 'CR'
else
return '?'
endif
endfunction
"クリップボードへのコピー
set clipboard+=unnamed,autoselect
filetype off
call vundle#rc()
Bundle 'gmarik/vundle'
"Bundle 'JavaScript-syntax'
Bundle 'Javascript-Indentation'
Bundle 'svnvimdiff'
Bundle 'jsbeautify'
Bundle 'neocomplcache'
Bundle 'Syntastic'
Bundle 'digitaltoad/vim-jade'
Bundle 'The-NERD-tree'
Bundle 'pyflakes'
Bundle 'Markdown-syntax'
Bundle 'quickrun.vim'
Bundle 'open-browser.vim'
Bundle 'bash-support.vim'
Bundle 'pangloss/vim-javascript'
Bundle 'jelera/vim-javascript-syntax'
Bundle 'othree/javascript-libraries-syntax.vim'
Bundle 'fatih/vim-go'
let g:neocomplcache_enable_at_startup = 1
imap <C-k> <Plug>(neocomplcache_snippets_expand)
smap <C-k> <Plug>(neocomplcache_snippets_expand)
let g:neocomplcache_snippets_disable_runtime_snippets =1
let g:neocomplcache_snippets_dir = '~/.vim/snippets'
let g:neocomplcache_max_list = 20
let g:neocomplcache_enable_ignore_case = 1
let g:neocomplcache_plugin_disable = {
\ 'syntax_complete' : 1,
\ }
let g:quickrun_config = {}
let g:quickrun_config['markdown'] = {
\ 'outputter' : 'browser',
\ 'command': 'kramdown'
\ }
highlight SpecialKey cterm=bold ctermfg=darkgray guibg=white
" 全角スペースを視覚化する
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=white
match ZenkakuSpace / /
"highlight HankakuSpace cterm=underline ctermfg=darkblue guibg=white
"match HankakuSpace /\s/
filetype plugin indent on
"for syntastic
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=2
let g:syntastic_javascript_checkers=['jshint']
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': ['go', 'javascript','js']}
let g:go_disable_autoinstall = 1
let g:go_fmt_autosave = 1
let g:go_fmt_command = 'gofmt'
let g:go_fmt_fail_silently = 1
let g:go_play_open_browser = 0
set ts=4 sw=4 sts=4 sr et ai
augroup groupone
autocmd!
autocmd FileType javascript set ts=2 sw=2 sts=2 expandtab
autocmd FileType python set ts=4 sw=4 sts=4 expandtab
autocmd BufRead,BufNewFile *.js set ft=javascript fenc=utf-8
autocmd BufRead,BufNewFile *.py set ft=python fenc=utf-8
autocmd FileType jade set ts=4 sw=4 sts=4 expandtab
autocmd BufRead,BufNewFile *.md set filetype=markdown fenc=utf-8
autocmd FileType sh set ts=2 sw=2 sts=2 expandtab
autocmd BufRead,BufNewFile *.sh set filetype=sh fenc=utf-8
"let scheme = 'jellybeans'
"execute 'colorscheme' scheme
"execute 'autocmd GUIEnter * colorscheme' scheme
"set ts=2
"set sw=2
"set sts=2
"set expandtab
syntax on
augroup END