-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
46 lines (38 loc) · 1.08 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
set nocompatible
" Common config stuff
syntax on
filetype plugin indent on
set hidden
set encoding=utf-8
set showcmd
set tabstop=2 shiftwidth=2
" minpac
packadd minpac
source ~/.vim/packages.vim
" Change mapleader to ,
let mapleader= ","
" I never type jj, so make that esc.
imap jj <Esc>
" Go to next buffer
map <leader>. :bn<cr>
" Go to previous buffer
map <leader>m :bp<cr>
" Show in tree.
map <leader>N :NERDTreeFind<cr>
" Toggle tree
map <leader>n :NERDTreeToggle<cr>
" Get swap and backup files out of the way.
set backupdir=~/.vim/_backup " where to put backup files.
set directory=~/.vim/_temp " where to put swap files.
" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
set wrapscan " Let search wrap around.
" Color
colorscheme morning
set background=light
" Airline plugin appearance
let g:airline_powerline_fonts = 1
let g:airline_theme='light'