Skip to content

Instantly share code, notes, and snippets.

@lingkz
Last active June 14, 2017 15:11
Show Gist options
  • Save lingkz/28d07386afeb9716cfba to your computer and use it in GitHub Desktop.
Save lingkz/28d07386afeb9716cfba to your computer and use it in GitHub Desktop.
cVimrc
map . nextMatchPattern
map , previousMatchPattern
map zx closeTabLeft
map cx closeTabRight
map gj firstTab
map gk lastTab
let qmark a = ["https://www.baidu.com"]
let searchengine dogpile = "http://www.dogpile.com/search/web?q=%s"
let searchengine baidu = "https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&ch=&tn=baiduerr&bar=&wd=%s"
"let searchengine baidu = "https://www.baidu.com/baidu?word=encodeURIComponent%s&ie=utf-8"
let searchengine taobao = "http://s.taobao.com/search?q=%s"
let searchengine youku = "http://www.soku.com/search_video/q_%s"
let searchengine zhihu = "https://www.zhihu.com/search?q=%s"
let searchengine jd = "http://search.jd.com/Search?keyword=%s&enc=utf-8"
let searchengine bing = "https://www.bing.com/search?q=%s"
let searchengine github = "https://github.com/search?utf8=✓&q=%s"
let searchengine youtube = "https://www.youtube.com/results?search_query=%s&page={startPage?}&utm_source=opensearch"
let searchengine wikipedia = "http://en.wikipedia.org/w/index.php?title=Special:Search&search=%s"
let searchengine pans = "http://www.pansou.com/s.php?q=%s"
let searchengine gg = "https://google.gg-g.org/#q=%s"
let completionengines = ["google", "baidu", "github", "dogpile", "wikipedia"]
let defaultengine ="baidu"
" map
imap <C-g> <Esc>
" <Leader>
let mapleader = ","
map <Leader>r :reloadTabUncache
map <Leader>q :closeTab
map <Leader>x :closeTab
map <Leader>z :lastClosedTab
map <Leader>h :history<Space>
map <Leader>b :tabnew<Space>baidu<Space>
map <Leader>e :tabnew<Space>bing<Space>
map <Leader>p :tabnew<Space>gg<Space>
map <leader>t :buffer<Space>
map <leader>a :tabnew<Space>amazon<Space>
map <leader>g :tabnew<Space>google<Space>
map <leader>yk :tabnew<Space>youku<Space>
map <leader>yt :tabnew<Space>youtube<Space>
map <leader>i :set numerichints!<CR>
" Settings
set nosmoothscroll
let previousmatchpattern = "((?!last)(prev(ious)?|back|«|less|<|‹|上一页|前一页|上页)+)"
let nextmatchpattern = "((?!first)(next|more|>|›|»|forward|下一页|后一页|下页)+)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment