forked from zerouno-it/VimConfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_vimrc
71 lines (54 loc) · 2.15 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
66
67
68
69
70
71
set nocompatible " be iMproved, required
filetype off " required
set encoding=utf-8
" set the runtime path to include Vundle and initialize
set rtp+=$HOME/vimfiles/bundle/Vundle.vim/
call vundle#begin('$HOME/vimfiles/bundle/')
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'kien/ctrlp.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'bling/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'mattn/emmet-vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" All of your Plugins must be added before the following line
call vundle#end() " required
let mapleader=","
set laststatus=2
syntax on
set number
colorscheme cobalt2
set ruler " Show ruler
set go-=T " Following line removes the toolbar, As I usually dont need it. Gives me extra lines for editor. If you have big monitor and you think you need toolbar, comment this line.
" Make command line two lines high
set ch=2
set t_Co=256
set bs=2 " allow backspacing over everything in insert mode
set ai " always set autoindenting on
set showmatch " show matching brackets
set hidden " This option allows you to switch between multiple buffers without saving a changed buffer
"------------------ Search -----------------
set hlsearch " Switch on search pattern highlighting.
set incsearch
set mousehide " Hide the mouse pointer while typing.
" airline
let g:airline_powerline_fonts = 1
set guifont=Inconsolata-dz_for_Powerline:h11
set linespace=3
"nerdtree
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
"------------------- Mappings --------------------
nmap <Leader>ev :tabedit $MYVIMRC<cr>
nmap <Leader><space> :nohlsearch<cr>
"------------------- Auto-Commands ---------------
autocmd BufWritePost $MYVIMRC source $MYVIMRC