-
Notifications
You must be signed in to change notification settings - Fork 1
/
cvimrc
40 lines (40 loc) · 1.42 KB
/
cvimrc
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
let barposition = "bottom"
set noautofocus " The opposite of autofocus; this setting stops
" sites from focusing on an input box when they load
set nosmoothscroll
let locale = "nz" " Current choices are 'jp' and 'uk'. This allows cVim to use sites like google.co.uk
" or google.co.jp to search rather than google.com. Support is currently limited.
" Let me know if you need a different locale for one of the completion/search engines
let mapleader = ";"
map f scrollFullPageDown
map b scrollFullPageUp
map h previousTab
map l nextTab
map d closeTab
map u lastClosedTab
map <Leader>o createHint
map <Leader>t createTabbedHint
map <Leader>f createActiveTabbedHint
map <Leader>b :buffer<space>
map <Leader>u :restore<Space>
map <Leader>l lastUsedTab
let searchengine gtrans = "https://translate.google.co.nz/#en/zh-CN/%s"
let searchengine youtrack = "http://youtrack.smxemail.com/issue/%s"
let searchengine foreman = "https://foreman.smxemail.com/hosts/%s.smxemail.com"
let searchengine foremane = "https://foreman.smxemail.com/hosts/%s.smxemail.com/edit"
let searchengine bsdman = "https://www.freebsd.org/cgi/man.cgi?query=%s"
" Insert mode
imap <C-a> beginningOfLine
imap <C-e> endOfLine
imap <C-u> deleteToBeginning
imap <C-k> deleteToEnd
imap <C-w> deleteWord
imap <C-f> forwardChar
imap <C-b> backwardChar
site '*://mail.google.com/mail/*' {
unmap j
unmap k
unmap u
unmap #
unmap x
}