-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (45 loc) · 968 Bytes
/
.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
filetype off
filetype plugin indent off
" tab
set expandtab
set ts=2 sw=2 sts=2
set listchars=tab:>-
set smartindent
set list
set nocompatible
syntax on
set number
set shellslash
set hidden
set ruler
set wrapscan
set scrolloff=3
set shell=/bin/bash
" バックスペースでインデントや改行を削除できるようにする
set backspace=indent,eol,start
" status line
set statusline=%-50.50f\ %16(\ %m%r%{&fileencoding}\ %{&fileformat}%)%=%l\ /%5L
colorscheme default
set cursorline
:hi clear CursorLine
:hi CursorLine gui=underline
highlight CursorLine ctermbg=black guibg=black
" encoding
set enc=utf-8
set fenc=utf-8
set fencs=utf-8,euc-jp,iso-2022-jp,cp932
set ffs=unix
set ambiwidth=single
set formatoptions+=mM
set fileformats=unix,dos,mac
" search
set nohlsearch
set ignorecase
set smartcase
set incsearch
" doube Esc: ハイライト消去
nmap <ESC><ESC> ;nohlsearch<CR><ESC>
" keymap
nnoremap j gj
nnoremap k gk
filetype plugin indent on