-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
103 lines (80 loc) · 2.41 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
" Set augroup.
augroup MyAutoCmd
autocmd!
augroup END
filetype off
source ~/dotfiles/vimrc/neobundle.vim
filetype plugin indent on
source ~/dotfiles/vimrc/accelerated-jk.vim
"source ~/dotfiles/vimrc/altr.vim
source ~/dotfiles/vimrc/anzu.vim
source ~/dotfiles/vimrc/auto_mkdir.vim
source ~/dotfiles/vimrc/auto_save.vim
source ~/dotfiles/vimrc/basic.vim
source ~/dotfiles/vimrc/completion.vim
source ~/dotfiles/vimrc/ctags.vim
source ~/dotfiles/vimrc/deploy.vim
source ~/dotfiles/vimrc/fugitive.vim
source ~/dotfiles/vimrc/global.vim
source ~/dotfiles/vimrc/golang.vim
source ~/dotfiles/vimrc/neocomplete.vim
source ~/dotfiles/vimrc/neosnippet.vim
source ~/dotfiles/vimrc/nerd_tree.vim
source ~/dotfiles/vimrc/nomotion.vim
source ~/dotfiles/vimrc/switch.vim
source ~/dotfiles/vimrc/rails.vim
source ~/dotfiles/vimrc/rename.vim
source ~/dotfiles/vimrc/rspec.vim
source ~/dotfiles/vimrc/smartchr.vim
source ~/dotfiles/vimrc/trim.vim
source ~/dotfiles/vimrc/unite.vim
source ~/dotfiles/vimrc/vimrc.vim
syntax on
" statusline
" set statusline=%F%Q%l%{anzu#search_status()}
set statusline=%F%m%r%h%w%{fugitive#statusline()}%{anzu#search_status()}
"set foldmethod=indent
"set foldlevel=0
let g:netrw_alto = 1
let g:netrw_altv = 1
"set enc=utf-8
"set fenc=utf-8
"set fencs=iso-2022-jp,euc-jp,cp932
"
"rails.vim
let g:rails_level=4
let g:rails_default_file="app/controllers/application_controller.rb"
let g:rails_default_database="mysql"
"rubycomplete.vim
"ruby set omnifunc=rubycomplete#Complete
let g:rubycomplete_buffer_loading = 1
let g:rubycomplete_rails = 1
let g:rubycomplete_classes_in_global = 1
"smartchr
"inoremap <expr> <buffer> { smartchr#loop('{', '#{', '{{{')
"inoremap <expr> = smartchr#one_of(' = ', ' == ', ' === ', '=')
"inoremap <expr> + smartchr#one_of(' + ')
"inoremap <expr> - smartchr#one_of(' - ')
"inoremap <expr> , smartchr#one_of(', ')
"vimfiler
":let g:vimfiler_as_default_explorer = 1
"toggle.vim C - T
let g:toggle_pairs = { 'and' : 'or', 'or' : 'and'}
imap } }<Left>
imap [] []<Left>
imap () ()<Left>
imap "" ""<Left>
imap '' ''<Left>
imap `` ``<Left>
imap <> <><Left>
nnoremap <Esc><Esc> :nohlsearch<CR>
autocmd BufRead,BufNewFile *.json set ft=javascript
"grep
autocmd QuickFixCmdPost *grep* cwindow
source $VIMRUNTIME/macros/matchit.vim
runtime macros/matchit.vim
nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
if system('uname') == "Linux\n"
set clipboard=unnamedplus
endif
let g:go_bin_path = $HOME . '/src'