-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
76 lines (59 loc) · 1.3 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
" support multi byte strings
scriptencoding utf-8
" vi互換無効
set nocompatible
augroup vimrc
autocmd!
augroup END
set timeout timeoutlen=1000 ttimeoutlen=75
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=0
set number
set nowrap
set nobackup
set ruler
set title
" status line
set laststatus=2
set statusline=%<%f\ %m%r%h%w
set statusline+=%{'['.(&fenc!=''?&fenc:&enc).']['.&fileformat.']'}
set statusline+=%=%l/%L,%c%V%8P
" カーソル行をハイライト
set cursorline
" " カレントウィンドウにのみ罫線を引く
augroup cch
autocmd! cch
autocmd WinLeave * set nocursorline
autocmd WinEnter,BufRead * set cursorline
augroup END
" ;でコマンド入力( ;と:を入れ替)
noremap ; :
noremap : ;
" search
set ignorecase
set smartcase
set nowrapscan
set hlsearch
" dont create sqap file
set noswapfile
" calor schema
set t_Co=256
colorscheme molokai
" infinite undo
if has('persistent_undo')
set undodir=~/.vim/undo
set undofile
endif
" hight light trailing space
augroup HighlightTrailingSpaces
autocmd!
autocmd VimEnter,WinEnter,ColorScheme * highlight TrailingSpaces term=underline guibg=Red ctermbg=Red
autocmd VimEnter,WinEnter * match TrailingSpaces /\s\+$/
augroup END
" syntax
syntax on
filetype plugin indent on
" 折りたたみオフ
set nofoldenable