How can I emulate Vim’s * search in GNU Emacs?

Based on your feedback to my first answer, how about this: (defun my-isearch-word-at-point () (interactive) (call-interactively ‘isearch-forward-regexp)) (defun my-isearch-yank-word-hook () (when (equal this-command ‘my-isearch-word-at-point) (let ((string (concat “\\<” (buffer-substring-no-properties (progn (skip-syntax-backward “w_”) (point)) (progn (skip-syntax-forward “w_”) (point))) “\\>”))) (if (and isearch-case-fold-search (eq ‘not-yanks search-upper-case)) (setq string (downcase string))) (setq isearch-string string isearch-message (concat isearch-message (mapconcat … Read more

How to jump to the next tag in vim help file

Use the :tn and :tp sequences to navigate between tags. If you want to look for the next tag on the same help page, try this search: /|.\{-}| This means to search for: The character | Any characters up to the next |, matching as few as possible (that’s what \{-} does). Another character | … Read more

Vim cursor jumps to beginning of the line after buffer switch

You can use the setting :se nostartofline or short: :se nosol Documentation: *’startofline’* *’sol’* *’nostartofline’* *’nosol’* ‘startofline’ ‘sol’ boolean (default on)` global {not in Vi} When “on” the commands listed below move the cursor to the first non-blank of the line. When off the cursor is kept in the same column (if possible). This applies … Read more

Override colorscheme

You asked what I’m looking for today. I found a simpler solution than those presented here. I want transparent background instead of the black background from the theme, while simply overriding the color after the colorscheme statement in .vimrc doesn’t work and installing a plugin just for that is weird. Here is what I did: … Read more