-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
45 lines (35 loc) · 1011 Bytes
/
.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
execute pathogen#infect()
" Colors
syntax enable " enable syntax processing
set background=light
colorscheme solarized
filetype plugin indent on
" Enable syntax folding
set foldmethod=syntax
" Show col 80 for line breaks
set cc=80
" Spaces and tabs
set shiftwidth=4 " size of an indent
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
" UI config
set number " show line numbers
" Searching
set incsearch " search as characters are entered
set hlsearch " highlight matches
" turn off search highlight
nnoremap <leader><space> :nohlsearch<CR>
" move vertically by visual line
nnoremap j gj
nnoremap k gk
" jk is escape
inoremap jk <esc>
" Splits
set splitbelow " Place new splits more intuitively
set splitright
" Navigate using normal keys
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>