forked from JustinHoyt/.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvrapperrc
31 lines (25 loc) · 910 Bytes
/
vrapperrc
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
set number
set expandtab " enter spaces when tab is pressed
set textwidth=120 " break lines when line length increases
set tabstop=4 " use 4 spaces to represent tab
set softtabstop=4
set shiftwidth=4 " number of spaces to use for auto indent
set autoindent " copy indent from current line when starting a new
set ruler " syntax highlighting
syntax on " show partial command in status line
let mapleader = ","
let maplocalleader = "\\"
" edit vimrc
nnoremap <leader>ev $MYVIMRC<cr>
" reload vimrc
nnoremap <leader>sv :source $MYVIMRC<cr>
" faster way to switch back to normal mode from insert mode
:inoremap jk <Esc>
" more natural windows mappings
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>
nnoremap <C-=> <C-W><C-=>
nnoremap <S-j> :bprevious<CR>
nnoremap <S-k> :bnext<CR>