-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
49 lines (34 loc) · 1.15 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
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
filetype plugin indent on
" spacing configration
set tabstop=2 " Set Tabstop
set shiftwidth=2 " Set indent width
set expandtab " Expand tab as spaces
" options for viminfo
set viminfo='100,h,:100
set number
set hlsearch
" Mac ClipBoard
vmap <silent> sy :!pbcopy; pbpaste<CR>
map <silent> sp <esc>o<esc>v:!pbpaste<CR>
call plug#begin()
Plug 'rust-lang/rust.vim'
Plug 'thinca/vim-quickrun'
Plug 'prabirshrestha/vim-lsp'
Plug 'mattn/vim-lsp-settings'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
Plug 'previm/previm'
Plug 'kana/vim-submode'
Plug 'preservim/nerdtree'
" requires vim to be compiled with `python3`
"Plug 'SirVer/ultisnips'
"Plug 'honza/vim-snippets'
Plug 'hashivim/vim-terraform'
call plug#end()
" 各種設定の読み込み
call map(sort(split(globpath(&runtimepath, '_config/*.vim'))), {->[execute('exec "so" v:val')]})