-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimpagerrc
57 lines (43 loc) · 1.3 KB
/
.vimpagerrc
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
set noloadplugins
let vimpager_disable_x11 = 1
inoremap <C-d> <Esc>
colorscheme shine
set ruler " Ruler on
set showcmd " show (partial) commands in last line
set number " Line numbers on
set incsearch " show incsearch matches (leave showing: hls/nohls)
set ignorecase " case insensitive
set smartcase " case sensitive if uppercase is used
set mouse=a " mouse support for all modes
set ttymouse=xterm2 " set terminal mouse support codes
" Mapleader
:set timeoutlen=1000
let mapleader = ","
" Keybindings
inoremap <C-l> <Del>
noremap <C-e> $
noremap <A-;> ,
inoremap <A-y> <C-e>
inoremap <C-y> <C-y>
inoremap <A-w> <C-c>
noremap <leader>fed :e! ~/.vimpagerrc<cr>
noremap <leader>feR :so ~/.vimpagerrc<cr>
noremap <leader>f<C-e>d :e! ~/.vimrc<cr>
noremap <C-x>0 :hide<cr>
noremap <C-x>1 :only<cr>
noremap <C-x>2 :split<cr>
noremap <C-x>3 :vsplit<cr>
noremap <C-x>k :bp<bar>sp<bar>bn<bar>bd<space>
noremap <leader>bd :bp<bar>sp<bar>bn<bar>bd<CR>
noremap <C-x><C-c> :wq<cr>
noremap <leader>tn :set invnumber<cr>
noremap <C-_> :normal u<cr>
" *****************
" * *
" * VIMPAGER-ONLY *
" * *
" *****************
"
noremap q :quit<ex>
noremap <f3> q
noremap <f5> :Page<cr>