Skip to content

Instantly share code, notes, and snippets.

@vlad-terin
Last active January 4, 2019 17:04
Show Gist options
  • Save vlad-terin/e14142281f0169f76c92c1e3465f6ca4 to your computer and use it in GitHub Desktop.
Save vlad-terin/e14142281f0169f76c92c1e3465f6ca4 to your computer and use it in GitHub Desktop.
cVim sync
" Cyrillic
let langmap = "ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>"
let hintcharacters = "sadfjklewcmpgh"
map H goBack
map L goForward
unmap b
map b :bookmarks!<Space>
map B :buffer<Space>
iunmap <C-j>
iunmap <C-k>
iunmap <C-h>
iunmap <C-l>
imap <C-h> backwardLine
imap <C-l> forwardLine
imap <C-j> backwardWord
imap <C-k> forwardWord
set showtabindices
setColemakVisualMappings -> {{
Visual.movements = {
n: ['right', 'character'],
b: ['left', 'character'],
b: ['left', 'line'],
n: ['right', 'line'],
k: ['right', 'word'],
j: ['left', 'word'],
h: ['left', 'lineboundary'],
l: ['right', 'lineboundary'],
G: ['right', 'documentboundary']
};
}}
call setColemakVisualMappings
let blacklists = ["http://www.typingstudy.com/*","https://whimsical.co/*","https://freehand.invisionapp.com/*"]
let searchengine bookmark = "chrome://bookmarks/?q=%s"
let searchalias b = "bookmark"
let completionengines = ["google", "googlem", "googlew", "googley", "slack", "chromestore", "googlemaps", "googleimages", "github", "github_marketplace", "bookmark", "googled"]
let searchengine googled= "https://drive.google.com/drive/u/0/search?q=%s"
let searchalias d = "googled"
let searchengine googlem= "https://www.google.com/search?q=%s&es_sm=93&source=lnt&tbs=qdr:m&sa=X&ved=0CBUQpwVqFQoTCNvLqLq-gskCFYrUJgodrW4KCw&biw=1280&bih=637"
let searchalias m = "googlem"
let searchengine googlew= "https://www.google.com/search?q=%s&source=lnt&tbs=qdr:w&sa=X&ved=0ahUKEwiC88iB14bfAhUzKX0KHUMpBhAQpwUIJg&biw=1920&bih=970"
let searchalias w = "googlew"
let searchengine googley= "https://www.google.com/search?q=%s&google+year&rlz=1C1CHBF_enUS823US823&source=lnt&tbs=qdr:y&sa=X&ved=0ahUKEwj2pOXS0obfAhUD9YMKHbOAAlMQpwUIJg&biw=1920&bih=970"
let searchalias y = "googley"
let searchengine slack= "https://securonixhq.slack.com/apps/search?q=%s"
let searchalias s = "slack"
let searchengine chromestore= "https://chrome.google.com/webstore/search/%s"
let searchalias c = "chromestore"
let searchengine googlemaps= "https://www.google.com/maps/search/%s/@32.9424624,-96.8404602,15z/data=!3m1!4b1"
let searchalias ma = "googlemaps"
let searchengine googleimages= "https://www.google.com/search?q=%s&hl=en&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiU78XY1obfAhUxwcQHHbg-BpMQ_AUIDygC&biw=1920&bih=970"
let searchalias i = "googleimages"
let searchengine github= "https://github.com/search?utf8=✓&q=%s"
let searchalias g = "github"
let searchengine github_marketplace= "https://github.com/marketplace?utf8=%E2%9C%93&query=%s"
let searchalias gm = "github_marketplace"
map ^n nextSearchResult
map ^N previousSearchResult
map n :execute ^nzz<CR>
map N :execute ^Nzz<CR>
unmap F
map F createActiveTabbedHint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment