-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
106 lines (91 loc) · 2.23 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
execute pathogen#infect()
call plug#begin('~/.vim/plugged')
Plug '/usr/local/opt/fzf'
Plug 'Yggdroot/indentLine'
Plug 'blueyed/vim-diminactive'
Plug 'cocopon/iceberg.vim'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf.vim'
Plug 'junegunn/goyo.vim'
Plug 'junegunn/vim-easy-align'
Plug 'matze/vim-move'
Plug 'paulojean/sort-quire.vim'
Plug 'sgur/vim-editorconfig'
Plug 'sheerun/vim-polyglot'
Plug 'simeji/winresizer'
Plug 'tpope/vim-fireplace'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-sensible'
Plug 'zhou13/vim-easyescape'
call plug#end()
syntax on
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
set autoindent
set autoread
set clipboard=unnamed
set colorcolumn=80
set expandtab
set ignorecase
set nobackup
set noerrorbells
set nohlsearch
set noshowmode
set noswapfile
set novisualbell
set nowb
set number
set re=1
set runtimepath^=~/.vim/bundle/ctrlp.vim
set shiftwidth=2
set showmatch
set softtabstop=2
set t_vb=
set tabstop=2
set termguicolors
set timeout
set timeoutlen=3000
set tm=500
set ttimeout
set ttimeoutlen=50
set ttyfast
autocmd BufEnter * EnableStripWhitespaceOnSave
let c='a'
while c <= 'z'
exec "set <A-".c.">=\e".c
exec "imap \e".c." <A-".c.">"
let c = nr2char(1+char2nr(c))
endw
let $FZF_DEFAULT_COMMAND = 'ag -g ""'
if executable('ag')
let g:ackprg = 'ag %s -l --vimgrep --smart-case --nocolor'
endif
vnoremap < <gv
vnoremap > >gv
noremap <silent> <C-S> :update<CR>
vnoremap <silent> <C-S> <C-C>:update<CR>
inoremap <silent> <C-S> <C-O>:update<CR>
nnoremap \ :Ag<SPACE>
nnoremap <tab> <c-w>w
nnoremap <S-tab> <c-w>W
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nmap <S-Enter> O<Esc>
nmap <CR> o<Esc>
let g:easyescape_chars = { "j": 1, "k": 1 }
let g:easyescape_timeout = 100
cnoremap jk <ESC>
cnoremap kj <ESC>
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --cached --exclude-standard']
let g:winresizer_start_key = '<C-T>'
let g:lightline = {
\ 'colorscheme': 'iceberg',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ], [ 'readonly', 'absolutepath', 'modified' ] ],
\ },
\ }
colorscheme iceberg