-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_vimrc
89 lines (65 loc) · 1.73 KB
/
dot_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
if &compatible
set nocompatible
endif
filetype on
filetype plugin on
filetype indent on
set encoding=utf8
set number
syntax on
set autoindent
set cursorline
" set cursorcolumn
set ruler
set title
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set textwidth=80
set wrap
set clipboard^=unnamed,unnamedplus
set splitbelow
set termwinsize=10x0
" Font type and size
if has('gui_macvim')
set guifont=Hack\ Nerd\ Font:h14
elseif has ('win32')
set guifont=Consolas:h12
endif
" Minpac: initialization
packadd minpac
call minpac#init()
call minpac#add('k-takata/minpac', {'type': 'opt'})
" Colorscheme: Ayu
call minpac#add('ayu-theme/ayu-vim')
set termguicolors
let ayucolor="dark"
colorscheme ayu
" auto-pairs
call minpac#add('jiangmiao/auto-pairs')
" airline: simple theme
call minpac#add('vim-airline/vim-airline')
call minpac#add('vim-airline/vim-airline-themes')
let g:airline_theme='simple'
" fugitive: Git support
call minpac#add('tpope/vim-fugitive')
" NERDTree
call minpac#add('preservim/nerdtree')
call minpac#add('Xuyuanp/nerdtree-git-plugin')
call minpac#add('tiagofumo/vim-nerdtree-syntax-highlight')
call minpac#add('PhilRunninger/nerdtree-visual-selection')
nmap <C-n> :NERDTreeToggle<CR>
autocmd VimEnter * NERDTree | wincmd p
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" VimDevIcons: Filetype icons
call minpac#add('ryanoasis/vim-devicons')
" Jedi: An autocompletion library
call minpac#add('davidhalter/jedi-vim')
call minpac#add('neoclide/coc.nvim')
call minpac#add('pappasam/coc-jedi')
" indentpython.vim
call minpac#add('vim-scripts/indentpython.vim')
" Quarto support
call minpac#add('vim-pandoc/vim-pandoc-syntax')
call minpac#add('quarto-dev/quarto-vim')