-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
86 lines (68 loc) · 1.47 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
set nocompatible
filetype off
" Temporary fix: https://github.com/vim/vim/issues/3117
if has('python3')
silent! python3 1
endif
call plug#begin('~/.vim/plugged')
Plug 'altercation/vim-colors-solarized'
Plug 'itchyny/lightline.vim'
Plug 'edkolev/tmuxline.vim'
Plug 'vim-scripts/taglist.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'scrooloose/nerdtree'
Plug 'jelera/vim-javascript-syntax'
Plug 'pangloss/vim-javascript'
Plug 'vim-ruby/vim-ruby'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
call plug#end()
filetype plugin indent on
syntax on
" Encoding
set encoding=utf-8
set fileencodings=utf-8,euc-jp
" Display
set number
set nolist
"set textwidth=78
set showcmd
set ambiwidth=double
" Editing
set autoindent
set smartindent
set showmatch
set backspace=indent,eol,start
set matchpairs+=<:>
" Tab settings
set tabstop=4
set shiftwidth=4
set softtabstop=4
set shiftround
set smarttab
set listchars=tab:>.
set list
set expandtab
" Search
set incsearch
set hlsearch
set ignorecase
set smartcase
" Others
set nobackup
set backupskip=/tmp/*,/private/tmp/*
filetype plugin on
filetype indent on
" ChangeLog
let g:changelog_timeformat = "%Y-%m-%d"
let g:changelog_username = "Takatoshi Ono <[email protected]>"
" Color
set background=dark
let g:solarized_visibility="low"
let g:solarized_termcolors=256
let g:solarized_termtrans=1
colorscheme solarized
" taglist
let Tlist_Inc_Winwidth = 0
" vim-go
let g:go_fmt_command = "goimports"
source ~/.dotfiles/vimrc.d/vimrc.statusline