-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
60 lines (49 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
" "
"
"
" Install Vimplug to manage Vim Plugins (curl is required):
"
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"
"
" "
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/leafgarland/typescript-vim'
Plug 'https://github.com/uiiaoo/java-syntax.vim'
Plug 'itchyny/lightline.vim'
Plug 'https://github.com/lilydjwg/colorizer'
Plug 'https://github.com/rafi/awesome-vim-colorschemes'
Plug 'https://github.com/preservim/nerdtree'
Plug 'ayu-theme/ayu-vim'
call plug#end()
" " Enable syntax highlighting
syntax on
" " Change tabs to 2 spaces
set expandtab
set tabstop=2
set shiftwidth=2
" " Automatically indent when starting new lines in code blocks
set autoindent
" " Add line numbers
set number
" " shows column, & line number in bottom right
set ruler
" " Color scheme I found that works best with PowerShell
" " colorscheme default
" "set termguicolors " enable true colors support
""let ayucolor="light" " for light version of theme
"let ayucolor="mirage" " for mirage version of theme
let ayucolor="dark" " for dark version of theme
colorscheme ayu
" helpful if using 'set ruler' and 'colorscheme shine', makes lineNumbers grey
" Same example from http://vim.wikia.com/wiki/Display_line_numbers
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
" " Disable bell sounds
set noerrorbells visualbell t_vb=
"" Autostart
autocmd VimEnter * NERDTree
"" Nerd Tree keybinds
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>