-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
67 lines (58 loc) · 1.32 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
set encoding=utf-8
scriptencoding utf-8
filetype plugin indent on
set backspace=indent,eol,start
set clipboard+=unnamed
set noswapfile
" NeoBundle
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
if !isdirectory(expand("~/.vim/bundle/neobundle.vim/"))
echo "install NeoBundle..."
:call system("git clone https://github.com/Shougo/neobundle.vim.git ~/.vim/bundle/neobundle.vim")
endif
endif
call neobundle#begin(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'sheerun/vim-polyglot'
NeoBundle 'tpope/vim-endwise'
NeoBundle 'cohama/lexima.vim'
call neobundle#end()
NeoBundleCheck
" Encoding
set fileencoding=utf-8
set fileencodings=ucs-boms,utf-8,euc-jp,cp932
set fileformats=unix,dos,mac
set ambiwidth=double
" Tab, Indent
set expandtab
set tabstop=2
set softtabstop=2
set autoindent
set smartindent
set shiftwidth=2
" Search
set incsearch
set ignorecase
set smartcase
set hlsearch
" Appearance
syntax enable
set number
set display=lastline
set showmatch
set matchtime=1
set cursorline
" Mouse
if has('mouse')
set mouse=a
if has('mouse_sgr')
set ttymouse=sgr
elseif v:version > 703 || v:version is 703 && has('patch632')
set ttymouse=sgr
else
set ttymouse=xterm2
endif
endif
" ESC
inoremap <silent> jj <ESC>