forked from mwamodo/bin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
81 lines (54 loc) · 1.35 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
72
73
74
75
76
77
78
79
80
81
" be iMproved, required
set nocompatible
"source plugins file
so ~/bin/vim/plugins.vim
"----Visuals-----"
colorscheme atom-dark
syntax enable
"macvim-specifit line height
set linespace=17
"activate line numbers.
set number
set relativenumber
"set font and line height
set guifont=Operator_Mono_Lig:h16
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
"-----General Settings-----"
"make backspace behave like normal text editors.
set backspace=indent,eol,start
"-----Mappings-----"
"the default leader is \, but a comma is much better.
let mapleader = ','
"Make NerdTree toogle easier
nmap <D-S-e> :NERDTreeToggle<cr>
"---------Plugins---------"
let g:NERDTreeWinPos = "right"
nmap <C-T> :CtrlPBufTag<cr>
nmap <C-R> :CtrlPMRUFiles<cr>
nmap <D-p> :CtrlP<cr>
"---------Searching---------"
"highlight search
set hlsearch
"highlight incrementaly
set incsearch
"--------Mappings---------"
"make .vimrc easy to edit
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Add simple highlight removal.
nmap <Leader><space> :nohlsearch<cr>
"-------------Split Management-----
set splitbelow
set splitright
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-H> <C-W><C-H>
nmap <C-L> <C-W><C-L>
"---------Auto-Commands---------"
"automatically source the vimrc file on save.
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END