-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
66 lines (51 loc) · 2.13 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
set nocompatible
filetype off " required for vundle
" Plugins
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim' " Manage Vundle
Plugin 'vim-airline/vim-airline' " nice status bar at the bottom
Plugin 'vim-airline/vim-airline-themes' " themes for airline
call vundle#end() " required
filetype plugin indent on " required
let g:airline_theme='minimalist' " AirlineTheme
set backspace=indent,eol,start " Make backspace behave like every other editor.
let mapleader = ',' " The default leader is \, but a comma is much better.
set number " Let's activate line numbers.
set linespace=7 " Macvim-specific line-height.
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
set guifont=roboto_mono_for_powerline:h14
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
syntax enable
set laststatus=2 " Always show status line
set number " Enable line numbers.
set showmode " Show the current mode.
set showmatch " show matching parenthesis
set splitbelow splitright " how to split new windows.
set title " Show the filename in the window title bar.
" use relative line number by default
if exists('+relativenumber')
set relativenumber
endif
" No Bell!
set visualbell " don't beep
set noerrorbells " don't beep
"-------------Search--------------"
set hlsearch
set incsearch
"-------------Mappings--------------"
"Add simple highlight removal.
nmap <Leader><space> :nohlsearch<cr>
"Easy escaping to normal model
imap jj <esc>
"-------------Auto-Commands--------------"
"Automatically source the Vimrc file on save.
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END