-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
69 lines (57 loc) · 1.37 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
" autocmd VimEnter * NERDTree
" autocmd VimEnter * wincmd p
let NERDTreeShowHidden=1
set number
set tabstop=2
set expandtab
set shiftwidth=2
set softtabstop=2
set cursorline
set incsearch
set hlsearch
set noswapfile
set nowrap
set smartindent
set noerrorbells
set undodir=~/.vim/undodir
set undofile
set colorcolumn=80
set textwidth=80
set showmatch
set foldenable
set foldlevelstart=10
set foldnestmax=10
set relativenumber
" VimWiki prerequisites
set nocompatible
filetype plugin on
syntax on
" end VimWiki prerequisites
call plug#begin('~/.vim/plugged')
Plug 'ycm-core/YouCompleteMe'
Plug 'airblade/vim-gitgutter'
Plug 'scrooloose/nerdtree'
Plug 'flazz/vim-colorschemes'
Plug 'pangloss/vim-javascript'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'haishanh/night-owl.vim'
Plug 'vim-airline/vim-airline'
Plug 'kien/ctrlp.vim'
Plug 'alvan/vim-closetag'
Plug 'evanleck/vim-svelte'
Plug 'preservim/nerdcommenter'
Plug 'vimwiki/vimwiki'
Plug 'jiangmiao/auto-pairs'
call plug#end()
colorscheme night-owl
if executable('rg')
let g:rg_derive_root='true'
endif
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
" ctrl+c and ctrl+v to copy/paste to/from system keyboard
vnoremap <C-c> "*y :let @+=@*<CR>
map <C-v> "+p
" Toggle NerdTREE with the F4 key
nnoremap <F4> :NERDTreeToggle<CR>
" List Buffers and Select
nnoremap <F5> :buffers<CR>:buffer<Space>