-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
69 lines (52 loc) · 1.95 KB
/
init.vim
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
" Settings
let g:airline_theme='minimalist'
let g:vimspector_enable_mappings = 'HUMAN'
let g:airline_powerline_fonts = 1
let g:indentline_setColors = 0
let g:indentline_color_term = 239
let g:indentline_bgcolor_term = 202
let g:blamer_enabled = 1
:set number relativenumber
:set guifont=FiraCode\ Nerd\ Font\ 12
set tabstop=2 " (ts) width (in spaces) that a <tab> is displayed as
set expandtab " (et) expand tabs to spaces (use :retab to redo entire file)
set shiftwidth=2 " (sw) width (in spaces) used in each step of autoindent (aswell as << and >>)
set encoding=UTF-8
" Relative Numbers
:augroup numbertoggle
: autocmd!
: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
:augroup END
" autocmd
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
" MAPS
nnoremap <silent> <C-P> :Files<CR>
nnoremap <silent> <C-B> :NERDTreeToggle<CR>
nnoremap <silent> <C-_> :Commentary<CR>
" PLUGINS
call plug#begin("~/.vim/plugged")
Plug 'preservim/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'puremourning/vimspector'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'yggdroot/indentline'
Plug 'jiangmiao/auto-pairs'
Plug 'junegunn/fzf/', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'APZelos/blamer.nvim'
Plug 'ap/vim-css-color'
" Plug 'valloric/youcompleteme'
Plug 'mg979/vim-visual-multi', { 'branch': 'master' }
Plug 'pangloss/vim-javascript'
Plug 'elzr/vim-json'
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug'] }
Plug 'tpope/vim-commentary'
Plug 'ryanoasis/vim-devicons'
call plug#end()
colorscheme dracula