-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
64 lines (54 loc) · 1.96 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" _
" __ __(_) _ __ ___ _ __ ___
" \ \ / /| || '_ ` _ \ | '__|/ __|
" _\ V / | || | | | | || | | (__
" (_)\_/ |_||_| |_| |_||_| \___|
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Vundle Preamble{{{
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" }}}
" Vundle Plugins {{{
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" Easy motion!
Plugin 'easymotion/vim-easymotion'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'morhetz/gruvbox'
Plugin 'justinmk/vim-syntax-extra'
Plugin 'tpope/vim-fugitive'
Plugin 'nikvdp/ejs-syntax'
"}}}
"Vundle Postamble{{{
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
"}}}
set encoding=utf-8
set number
set tabstop=4 shiftwidth=4 softtabstop=4 expandtab
set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮,trail:·,nbsp:‿ " show these hidden characters
set list
"colors
syntax enable
set background=dark
colorscheme gruvbox
"let g:gruvbox_contrast_dark = "soft"
let mapleader="\<Space>" " leader is space
nnoremap <leader>m :silent make\|redraw!\|cw<CR>
nnoremap <leader>mc :silent make clean\|redraw!\|cw<CR>
nnoremap <leader>mr :silent make realclean\|redraw!\|cw<CR>
nnoremap <leader>n :nohlsearch<CR>
" start with NERDTree open if no files are specified
autocmd vimenter * if !argc() | NERDTree | endif
" exit Vim if a NERDTree is the last buffer
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif