-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
64 lines (52 loc) · 1.39 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
" Install plug.vim if not already installed
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
" === BEGIN VIM-PLUG ===
call plug#begin('~/.vim/plugged')
Plug 'chriskempson/base16-vim'
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'mattn/emmet-vim'
Plug 'sevko/vim-nand2tetris-syntax'
call plug#end()
" === END VIM-PLUG ===
" Colorscheme
set termguicolors
let base16colorspace=256 " Access colors present in 256 colorspace
colorscheme base16-material-darker " To see other run `base16_ <tab>` in terminal
" NERDTree Config
map <C-n> :NERDTreeToggle<CR>
let g:NERDTreeWinPos = "right"
" Tabs 4 space
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
" Remap ESC
inoremap jk <Esc>
" Display line numbers
set number
" Highlight current line
set cursorline
" Folds
set foldmethod=syntax
" Search as caracters are entered
set incsearch
" Relative line numbers
function! g:ToggleNuMode()
if &rnu == 1
set rnu!
elseif &ru == 1
set rnu
else
set nu
endif
endfunction
nnoremap <silent><C-L> :call g:ToggleNuMode()<cr>
" Ctags
set autochdir
set tags+=./tags;
" Emmet Config
let g:user_emmet_leader_key=','