Skip to content

Instantly share code, notes, and snippets.

@atalazer
Last active October 19, 2021 07:46
Show Gist options
  • Save atalazer/296a98d64a44e2885e3b672aeccd14e5 to your computer and use it in GitHub Desktop.
Save atalazer/296a98d64a44e2885e3b672aeccd14e5 to your computer and use it in GitHub Desktop.
My cVim configurations :)
" ============================================
" Settings
" ============================================
set autoupdategist
set cncpcompletion
set ignorecase
set incsearch
set smartcase
set smoothscroll
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "bottom"
let hintcharacters = "asdfhjkl"
" Search Engine
" -----------------------
let searchengine duckduckgo = "https://duckduckgo.com/?q=%s"
let searchengine google = "https://www.google.com/search?hl=en&q=%s"
let searchengine wikipedia = "https://en.wikipedia.org/w/index.php?search=%s"
let searchengine reddit = "https://www.reddit.com/search/?q=%s"
let searchengine aur = "https://aur.archlinux.org/packages/?O=0&K=%s"
let searchengine archwiki = "https://wiki.archlinux.org/?search=%s"
let searchengine github = "https://github.com/search?q=%s"
let searchengine nixpkg = "https://search.nixos.org/packages?channel=unstable&query=%s"
let searchengine youtube = "https://www.youtube.com/results?search_query=%s"
let completionengines = ["duckduckgo", "google", "wikipedia", "youtube", "reddit", "aur", "archwiki", "github", "nixpkg"]
let searchalias d = "duckduckgo"
let searchalias g = "google"
let searchalias w = "wikipedia"
let searchalias r = "reddit"
let searchalias au = "aur"
let searchalias aw = "archwiki"
let searchalias gh = "github"
let searchalias np = "nixpkg"
let searchalias yt = "youtube"
let defaultengine = "duckduckgo"
" Blacklist
" -------------------------
" blacklists prefixed by '@' act as a whitelist
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"]
" ============================================
" Mappings
" ============================================
" Swap J and K
map K previousTab
map J nextTab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment