Skip to content

A cross-platform keybinding that x10 your coding speed

Notifications You must be signed in to change notification settings

thaiminhpv/fast.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fast.vim

A cross-platform keybinding that x10 your coding speed

vimfast

Installation

VSCode

  1. Press Ctrl + P to open the quick open dialog, type ext install vscodevim.vim and press enter.

  2. Press Ctrl + Shift + P to open the command palette, type Preferences: Open User Settings (JSON) and press enter.

  3. Add the following settings to the JSON file:

    {
      "vim.vimrc.enable": true,
      "vim.autoindent": true,
      "vim.vimrc.path": "~/vscode.vim",
      "vim.handleKeys": {
          "<C-A>": false,
          "<C-Y>": false,
          "<C-O>": false,
          "<C-I>": false
      },
      "editor.lineNumbers": "relative",
      "notebook.lineNumbers": "on"
    }
  4. Copy the vscode.vim file to ~/vscode.vim for Linux or %USERPROFILE%\vscode.vim for Windows.

Done!

IntelliJ (JetBrains Products)

  1. Install the IdeaVim plugin.
  2. Copy the .ideavimrc file to ~/.ideavimrc for Linux or %USERPROFILE%\.ideavimrc for Windows.

Done!

NeoVim

If you are reading this part, that means you are already a Vim user, so you should already know what to do after looking at neo.vim.

How to use

  1. Use Ctrl + D, Ctrl + U to scroll up and down, use Ctrl + P to navigate between files.

  2. After your needed edit lines comes within your screen view, use <number> + j/k to move the cursor to the line you want.

  3. Use either:

    • cw to change a word
    • c", cl to change a "double quoted string"
    • c' to change a "single quoted string"
    • cb, ch to change a () block
    • cd to change a [] block
    • cq, cB, cv to change a {} block

    For more detailed, see configuration at vscode.vim#Line1->10

FAQs

How to fix Ctrl + P not working in Visual Studio Code

  1. Press Ctrl + Shift + P to open the command palette.

  2. Type Preferences: Open Keyboard Shortcuts (JSON) and select it.

  3. Add the following keybinding to the JSON file:

    {
        "key": "ctrl+p",
        "command": "-extension.vim_ctrl+p",
        "when": "editorTextFocus && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
    },

Related links

About

A cross-platform keybinding that x10 your coding speed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published