-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
57 lines (41 loc) · 1 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
" ---------------------
" Sapphire's Vim Config
" ---------------------
call plug#begin('~/.vim/plugged')
" Colorschemes
Plug 'flazz/vim-colorschemes'
" Tree explorer 🌲
Plug 'scrooloose/nerdtree'
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#end()
" Config
" Set colorscheme
colorscheme molokai
" Show line numbers
set number
set numberwidth=3
" Highlight search patterns
set hlsearch
set incsearch
" Search is not case sensitive
set ignorecase
" Focus matching parentheses
set showmatch
" Enable file type detection
filetype plugin indent on
" Enable syntax highlighting
syntax on
" One tab is two spaces
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set autoindent
" Set lines visible relative to cursor
set scrolloff=5
" Toggle NerdTree with Command+n
map <C-n> :NERDTreeToggle<CR>