When in evil-mode, I can make the cursor go down 3 lines by command 'C-u 3 M-x evil-next-line' , but how can I make the cursor go down 3 lines by just pressing J?
In evil-mode how to just press J to move the cursor down 3 lines
100 Views Asked by Giant At
1
There are 1 best solutions below
Related Questions in EMACS
- How can I make 'emacsclient' open in native fullscreen every time I launch it from the terminal in macOS?
- emacsclient does not connect inside ubuntu container
- Emacs use .emacs by default instead .emacs.d/init.el
- Setting up Macaulay 2 on emacs
- org-mime add caption to exported images
- Use the same export attribute for all src-blocks
- Tags Development Tools
- Emacs 29.2 unable to find theme file
- How to automatically allow the execution of code action from HLS in emacs?
- Org-babel remote inline images with TRAMP not exporting in org export
- find and replace regex like that can deal with nested brackets
- Inheriting from variadic types messes up template member function indentation in Emacs
- Invoking org-store-link interactively, errors on calling org-man-store-link
- Disable session save in doom emacs
- How do you connect to a remote emacs server using Microsoft dev tunnels
Related Questions in EVIL-MODE
- Org-mode note and Evil - go into insert mode and change shortcuts
- Doom Emacs: Turn off single line comment autocompletion
- Getting debugger lisp error: (void-variable w)
- Receiving "wrong type argument: commandp..." when hacking around emacs evil mode
- how to properly disable auto-completion when doing macro expansion
- How to move to end of character when switching from normal to insert mode in Emacs Doom or Vim?
- Using evil-mode in dired or disable evil-mode in dired
- I expect this elisp function to visualize entire function, but it visualizes beginning to cursor
- In evil-mode how to just press J to move the cursor down 3 lines
- How to undo all changes when using evil-visual-block in Emacs in Evil mode?
- What function does evil mode run when I press :w?
- Using the :general with use-package sometimes doesn't work
- Getting a no match when trying to install evil from emacs (M-x package-install RET evil [No match]) - how to fix?
- Evil mode has unpredictable behavior when using compile
- How to resize the undo-tree-visualizer window?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
1. Short answer
Add this to your
.emacsfile:Note that
Jis currently bound toevil-join.If you are ok to rebind it, just add:
Now, to join lines, you may either type
M-xevil-joinRETor bind something else toevil-join(see below).Note that, if you type
2J, you'll move twice 3 lines down, which is more or less 6 lines down... andC-uJwill move 4*3 = 12 lines down.2. Not so short answer (what I actually did)
I never used
evil-mode... so I tried to add this package and enabled theevil-mode(which is ok for me since I know the mainvicommands and I know how to disable it withC--M-xevil-modeRET).When
evil-modeis enabled and I typeC-hkJ, the Help buffer says:Then I typed
C-hkj, clicked theevil-commands.ellink from the Help buffer and copied and adapted the definition of theevil-next-linefunction to theevil-next-line-3function and bound it toJ.In case you want to go back to the previous binding of
J(or want to bind it to something else), you can evaluate something like: