-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
41 lines (32 loc) · 1.15 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
call plug#begin('~/.config/nvim/plugged')
Plug 'dag/vim-fish' " Fish script syntax highlighting
Plug 'scrooloose/NERDTree' " File system explorer
Plug 'dracula/vim', {'as': 'dracula'} " Dracula color scheme
Plug 'pangloss/vim-javascript' " Improved JS syntax highlighting
Plug 'briancollins/vim-jst' " EJS syntax highlighting
call plug#end()
" set termguicolors
colorscheme dracula
highlight Normal ctermbg=NONE
highlight LineNr ctermbg=NONE ctermfg=NONE guifg=fg guibg=bg
highlight NonText ctermbg=NONE ctermfg=0 guibg=bg guifg=bg
" autocmd vimenter * NERDTree
map <C-n> :NERDTreeToggle<LF>
map <C-w> :quit<LF>
set mouse=a
map <ScrollWheelUp> <Up>
map <ScrollWheelDown> <Down>
let g:python3_host_prog = '/usr/bin/python3'
let g:ycm_global_ycm_extra_conf = '~/.config/nvim/.ycm_extra_conf.py'
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab autoindent
command WQ wq
command Wq wq
command W w
command Q q
nnoremap ; :
set number relativenumber
augroup numbertoggle
autocmd!
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END