-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
111 lines (86 loc) · 2.23 KB
/
.vimrc
File metadata and controls
111 lines (86 loc) · 2.23 KB
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
set nocompatible
set backspace=2
""" Search Setting
set ignorecase
set smartcase
set wrapscan
""" Display Settings
set number
set title
set showmatch
set tabstop=2
set shiftwidth=2
set softtabstop=2
set smartindent
set cursorline
set laststatus=2
""" Color Settings
syntax on
"let g:hybrid_use_iTerm_colors = 1
colorscheme hybrid
""" Pulugin Setting
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/Users/ohyama/.cache/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')
" Let dein manage dein
" Required:
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here like this:
"call dein#add('Shougo/neosnippet.vim')
"call dein#add('Shougo/neosnippet-snippets')
call dein#add('itchyny/lightline.vim')
call dein#add('osyo-manga/vim-anzu')
call dein#add('vim-scripts/surround.vim')
call dein#add('tyru/open-browser.vim')
call dein#add('editorconfig/editorconfig-vim')
call dein#add('scrooloose/syntastic')
" Required:
call dein#end()
call dein#save_state()
endif
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
if &compatible
set nocompatible
endif
set runtimepath+=~/.vim/dein/repos/github.com/Shougo/dein.vim
""" Plugin Settings / vim-anzu
nmap n <Plug>(anzu-n)
nmap N <Plug>(anzu-N)
nmap * <Plug>(anzu-star)
nmap # <Plug>(anzu-sharp)
augroup vim-anzu
autocmd!
autocmd CursorHold,CursorHoldI,WinLeave,TabLeave * call anzu#clear_search_status()
augroup END
""" Plugin Settings / lightline with vim-anzu
let g:lightline = {
\ 'active': {
\ 'left': [ ['mode', 'paste'], ['readonly', 'filename', 'modified', 'anzu'] ]
\ },
\ 'component_function': {
\ 'anzu': 'anzu#search_status'
\ }
\ }
""" Plugin Settings / open-browser.vim
let g:netrw_nogx = 1 " disable netrw's gx mapping.
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
""" Plugin Settings / emmet-vim
let g:user_emmet_leader_key = '<c-e>'
let g:user_emmet_settings = {
\ 'html' : {
\ 'lang' : 'ja',
\ 'charset' : 'utf-8',
\ },
\}