-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcVimrc.txt
66 lines (58 loc) · 2.66 KB
/
cVimrc.txt
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
58
59
60
61
62
63
64
65
66
"Settings
let scrolltep = 30
let fullpagescrollpercent = 100
"set nohud
set autohidecursor
"set noinsertmappings
set nosmoothscroll
let blacklists = ["https://mail.google.com/*", "https://tweetdeck.twitter.com/*"]
let mapleader = ","
"let locale = "jp"
let hintcharacters = "hjklasdfgyuiopqwertnmzxcvb"
let barposition = "bottom"
set autoupdategist
" qmarks
" google mail/task/calendar
" google translator en/ja/language tool
let qmark e = ["javascript:var%20t=((window.getSelection&&window.getSelection())%7C%7C(document.getSelection&&document.getSelection())%7C%7C(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset%7C%7Cdocument.characterSet);if(t!='')%7Blocation.href='http://translate.google.com/translate_t?text='+t+'&hl=ja&langpair=auto%7Cen&tbb=1&ie='+e;%7Delse%7Blocation.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=ja&langpair=auto%7Cen&tbb=1&ie='+e;%7D;"]
let qmark j = ["javascript:var%20t=((window.getSelection&&window.getSelection())%7C%7C(document.getSelection&&document.getSelection())%7C%7C(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset%7C%7Cdocument.characterSet);if(t!='')%7Blocation.href='http://translate.google.com/?text='+t+'&hl=ja&langpair=auto%7Cja&tbb=1&ie='+e;%7Delse%7Blocation.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=ja&langpair=auto%7Cja&tbb=1&ie='+e;%7D;"]
let qmark l = ["http://www.google.com/language_tools"]
" Feedly/Pocket/GitHub
let qmark f = ["http://cloud.feedly.com/#latest"]
let qmark p = ["http://getpocket.com/a/queue/"]
" unmap
unmap x H S L D
" Move
map b scrollFullPageUp
map <C-b> scrollFullPageUp
map <C-f> scrollFullPageDown
" Navigation
"map <C-w> closeTab
map <C-z> lastClosedTab
map <C-h> previousTab
map <C-l> nextTab
map <C-i> goForward
map u goBack
map :wo :new<Space>
map ;wo :new<Space>
map R reloadTabUncached
map T :buffer<Space>
map B :bookmarks
" Want to make a key to yank current selected word and search it...
"map <C-g> :execute vlhyP<CR>
" Currently, ":" doesn't shows command line.
" Need at least one charactor (use <Space> here)
map ; :<Space>
" Text boxes
iunmapAll
imap <C-h> deleteChar
imap <C-d> deleteForwardChar
imap <C-k> deleteToEnd
imap <C-u> deleteToBeginning
imap <C-w> deleteWord
imap <C-b> backwardChar
imap <C-f> forwardChar
imap <C-a> begginingOfLine
imap <C-e> endOfLine
imap <C-n> forwardLine
imap <C-p> backwardLine