forked from kaochenlong/eddie-vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy-vimrc
41 lines (34 loc) · 782 Bytes
/
easy-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
" Easy version Vimrc
" I kept all other settings in plugins/settings directory
"
" Eddie Kao
" http://blog.eddie.com.tw
runtime bundle/vim-pathogen/autoload/pathogen.vim
filetype off
"call pathogen#runtime_append_all_bundles()
call pathogen#incubate()
filetype plugin indent on
call pathogen#infect()
call pathogen#helptags()
" =============
" custom key
" =============
" add a new line without entering insert mode
noremap <CR> o<Esc>
" map backspce to delete a character
noremap <BS> X
" map ctrl+c and ctrl+v
noremap <C-c> y
noremap <C-v> P
" cancel searched highlight
noremap ; :nohlsearch<CR>
" navigating for long lines
map j gj
map k gk
map <UP> gk
map <DOWN> gj
imap <UP> <ESC>gk<RIGHT>i
imap <DOWN> <ESC>gj<RIGHT>i
" select ALL
map <C-A> ggVG