-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
65 lines (47 loc) · 1.22 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
61
62
63
64
65
"Plugins begin
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'plasticboy/vim-markdown'
Plug 'iamcco/markdown-preview.vim'
"colorschemes
Plug 'morhetz/gruvbox'
call plug#end()
"Autoinstall PLUG
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
"SETTINGS FOR MARKDOWN PREVIEW
let g:mkdp_auto_start = 1
let g:mkdp_auto_open = 1
let g:mkdp_auto_close = 1
let g:mkdp_refresh_slow = 0
nmap <silent> <F8> <Plug>MarkdownPreview
nmap <silent> <F9> <Plug>StopMarkdownPreview
"Enable syntax highlighting
syntax on
"COLORSCHEME SETTINGS
colorscheme gruvbox
set background=dark
"Show line number
set number
"Always show current position
set ruler
"Use UTF-8
set encoding=utf-8
"Use spaces instead of tabs
set expandtab
"1 tab == 4 spaces
set tabstop=4
"Highlight search results
set hlsearch
"Makes search act like search in modern browsers
set incsearch
"Wrap lines
set wrap
"MAPPINGS
map <C-n> : NERDTreeToggle<CR>