This repository has been archived by the owner on Mar 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.dotfile
88 lines (73 loc) · 2.15 KB
/
vimrc.dotfile
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
87
88
" Basic Settings
syntax on
set number
set autoindent
set showmatch
set hlsearch
set wrap
set ruler
set showcmd
set belloff=all
" Indent width
if has("autocmd")
filetype plugin on
filetype indent on
autocmd FileType c setlocal sw=4 sts=4 ts=4 et
autocmd FileType html setlocal sw=4 sts=4 ts=4 et
autocmd FileType ruby setlocal sw=2 sts=2 ts=2 et
autocmd FileType js setlocal sw=4 sts=4 ts=4 et
autocmd FileType zsh setlocal sw=4 sts=4 ts=4 et
autocmd FileType python setlocal sw=4 sts=4 ts=4 et
autocmd FileType scala setlocal sw=4 sts=4 ts=4 et
autocmd FileType json setlocal sw=4 sts=4 ts=4 et
autocmd FileType yml setlocal sw=2 sts=2 ts=2 et
autocmd FileType yaml setlocal sw=2 sts=2 ts=2 et
autocmd FileType html setlocal sw=4 sts=4 ts=4 et
autocmd FileType css setlocal sw=4 sts=4 ts=4 et
autocmd FileType scss setlocal sw=4 sts=4 ts=4 et
autocmd FileType sass setlocal sw=4 sts=4 ts=4 et
autocmd FileType javascript setlocal sw=4 sts=4 ts=4 et
endif
" Show Tabs
set listchars=tab:>-,extends:<,trail:_
set list
" Statusline Setting
set laststatus=2
" Key Settings
nmap <Esc><Esc> :noh<CR><Esc>
" Clipboard Setting
set clipboard=unnamedplus
" Config for lightline
let g:lightline = {
\ 'colorscheme': 'landscape'
\ }
if !has('gui_running')
set t_Co=256
endif
" Color Settings
hi Comment ctermfg=2
" Copy Select Text to ClipBord
set clipboard+=autoselect
set clipboard+=unnamed
" Settings for dein
if &compatible
set nocompatible
endif
" Add the dein installation directory into runtimepath
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
if dein#load_state('~/.cache/dein')
call dein#begin('~/.cache/dein')
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
call dein#add('Shougo/deoplete.nvim')
if !has('nvim')
call dein#add('roxma/nvim-yarp')
call dein#add('roxma/vim-hug-neovim-rpc')
endif
"Write Plugin name
call dein#add('tpope/vim-fugitive')
call dein#add('itchyny/lightline.vim')
call dein#end()
call dein#save_state()
endif
filetype plugin indent on
syntax enable