-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
70 lines (57 loc) · 1.63 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
:set number
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set smarttab
:set mouse=a
:set encoding=UTF-8
:set winheight=38
:set nocompatible
:set clipboard=unnamed
filetype on
filetype plugin on
filetype indent on
syntax enable
call plug#begin()
Plug 'https://github.com/rafi/awesome-vim-colorschemes'
Plug 'vim-scripts/AutoComplPop'
Plug 'preservim/nerdtree'
Plug 'tpope/vim-commentary'
Plug 'kien/rainbow_parentheses.vim'
Plug 'itchyny/lightline.vim'
Plug '907th/vim-auto-save'
Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
Plug 'octol/vim-cpp-enhanced-highlight'
call plug#end()
set background=dark
set termguicolors
colorscheme one
set noshowmode
nnoremap H gT
nnoremap L gt
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
autocmd VimEnter * NERDTree | wincmd p
nnoremap <C-b> :NERDTreeToggle<cr>
let g:NERDTreeDirArrowExpandable="+"
let g:NERDTreeDirArrowCollapsible="~"
nnoremap <C-d> :below terminal<cr>
nnoremap <C-a> :Commentary<cr>
inoremap <C-a> <esc>:Commentary<cr>
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
set laststatus=2
augroup NERD
au!
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd VimEnter * wincmd p
autocmd VimEnter * call lightline#update()
augroup END
let g:auto_save = 1
let g:auto_save_events = ["InsertLeave", "TextChanged", "CursorHold", "CursorHoldI"]
set mouse=a
map <ScrollWheelUp> <C-Y>
map <ScrollWheelDown> <C-E>