Skip to content

Instantly share code, notes, and snippets.

View zencodex's full-sized avatar

Qisen Yz zencodex

View GitHub Profile
@zencodex
zencodex / elasticsearch-setup-apple-macbook-pro-m1.md
Created March 23, 2024 10:11 — forked from todgru/elasticsearch-setup-apple-macbook-pro-m1.md
Install Elasticsearch 7.x on Apple Macbook Pro M1 Ventura 13.2

Elasticsearch Setup Apple MacBook Pro M1

Apple MacBook Pro M1, 32 GB, Ventura 13.2

Documentation based on comments in this Github Elasticsearch issue.

Install Homebrew

"visual search mappings
function! s:VSetSearch()
let temp = @@
norm! gvy
let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g')
let @@ = temp
endfunction
vnoremap * :<C-u>call <SID>VSetSearch()<CR>//<CR>
vnoremap # :<C-u>call <SID>VSetSearch()<CR>??<CR>
@zencodex
zencodex / vim.rst
Created November 2, 2016 04:04 — forked from menghan/vim.rst
学习 vim help 的笔记

undo and redo

  • u/^R/U
  • undo + <num> / g- / g+

    前者用于知道跳转去向,后者用于不知道的

  • :undolist
  • :earlier 10s / 10h / 1m / :later