VSCode Vim Keyboard Shortcuts Tutorial

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • Sign Up 👻👻👉 semicolon.dev/RUclips
    (We're free online community, meet other makers!)
    Hey guys in this #vscode keyboard shortcuts tutorial I'll show you how to install visual studio code's vim extension and use some of the most common vim keyboard shortcuts.
    00:00 How to Setup and Use Vim in Visual Studio Code
    00:33 Install Vim Extension
    00:56 Install Vim Cheatsheet Extension (all vim keyboard shortcuts)
    01:38 Command Mode
    02:44 How to switch to Vim Insert mode in VSCode
    02:09 Moving Cursor with h j k l keys
    03:37 Shift M (Go to middle of page)
    03:52 Move cursor to first letter of a word (w and b)
    04:24 Move cursor to first letter of current paragraph
    05:18 Erase previous word / Backspace entire word (ctrl w)
    05:24 Indent Current Line
    05:33 Select Text Between Single or Double Quotes
    05:47 Undo
    05:56 Increase or Decrease Number
    06:34 Repeat Last Action
    06:59 How to find or create vimrc settings file
    06:50 Where is .vimrc settings file in VSCode
    08:45 How to exit vim
    Vim .vimrc settings file example:
    ===========================
    """" Basic Behavior
    set number " show line numbers
    set wrap " wrap lines
    set encoding=utf-8 " set encoding to UTF-8 (default was "latin1")
    set mouse=a " enable mouse support (might not work well on Mac OS X)
    set wildmenu " visual autocomplete for command menu
    set lazyredraw " redraw screen only when we need to
    set showmatch " highlight matching parentheses / brackets [{()}]
    set laststatus=2 " always show statusline (even with only single window)
    set ruler " show line and column number of the cursor on right side of statusline
    set visualbell " blink cursor on error, instead of beeping
    """" Key Bindings
    " move vertically by visual line (don't skip wrapped lines)
    nmap j gj
    nmap k gk
    """" Vim Appearance
    " put colorscheme files in ~/.vim/colors/
    colorscheme murphy " good colorschemes: murphy, slate, molokai, badwolf, solarized
    " use filetype-based syntax highlighting, ftplugins, and indentation
    syntax enable
    filetype plugin indent on
    """" Tab settings
    set tabstop=4 " width that a TAB character displays as
    set expandtab " convert TAB key-presses to spaces
    set shiftwidth=4 " number of spaces to use for each step of (auto)indent
    set softtabstop=4 " backspace after pressing TAB will remove up to this many spaces
    set autoindent " copy indent from current line when starting a new line
    set smartindent " even better autoindent (e.g. add indent after '{')
    """" Search settings
    set incsearch " search as characters are entered
    set hlsearch " highlight matches
    """" Miscellaneous settings that might be worth enabling
    "set cursorline " highlight current line
    "set background=dark " configure Vim to use brighter colors
    "set autoread " autoreload the file in Vim if it has been changed outside of Vim

Комментарии • 22

  • @softwaretestinglearninghub
    @softwaretestinglearninghub Год назад +1

    Great shortcuts, thank you!

  • @Redyf
    @Redyf 10 месяцев назад +1

    Those are some useful keybinds, thanks!

  • @shuncho7844
    @shuncho7844 2 месяца назад +1

    Thank you so much, its really nice to use vscode functionality with the vim keybindings

  • @jrodericklane
    @jrodericklane Год назад +30

    Something is very wrong with the audio. Almost makes me nauseous.

  • @exshenanigan2333
    @exshenanigan2333 Год назад

    I can't seem to delete something, without copying it to my clipboard. I tried passing _ before doing dd or a number like 1dd, 2dd but no matter what I tried, it just keeps replacing my clipboard, so if I copy something, move to somewhere else to replace something with the copied text, I just can't. What's the solution to this?

  • @danielmalka6824
    @danielmalka6824 Год назад

    very helpful !!!! very very very very very very very (using macros now thanks to you!)

  • @tylerlaprade642
    @tylerlaprade642 5 месяцев назад

    Ctrl+W and Ctrl+T are doing the default VSC shortcuts (switch windows and switch tabs, respectively) for me instead of the Vim behavior if I'm in the first tab of my tab group. In any of the other tabs, they do the regular Vim shortcut. How can I fix this?

  • @wogvorph
    @wogvorph Год назад

    Hey, with TAB enabled how do I fill auto suggested code while typing?

  • @6ocram
    @6ocram 9 месяцев назад

    Thanks

  • @gbvtech
    @gbvtech 7 месяцев назад

    tried setting up a vimrc file with just a value of `set relativenumber` but it does not work, any idea why?

  • @eijstech
    @eijstech Год назад

    i LOVE YOU!

  • @tacobabyman1215
    @tacobabyman1215 Год назад +7

    My EARS!

  • @AdityaMishra-xe7ct
    @AdityaMishra-xe7ct Год назад

    can we run the program using any commands
    if its there then pls share it cause im trying to find it since a lot if time.

  • @Mrramneek2
    @Mrramneek2 Год назад +2

    good video 👍 .. please work on your audio

  • @adam29334
    @adam29334 Год назад +8

    Please, mono audio

    • @ghosttogether
      @ghosttogether  Год назад

      huh why?

    • @klapaucius515
      @klapaucius515 Год назад +6

      @@ghosttogether cause this is super weird, lol

    • @frankk9583
      @frankk9583 Год назад +6

      @@ghosttogether bro this is no asmr video, get back 2 feet from the mic and switch to mono

    • @robosergTV
      @robosergTV 3 месяца назад

      @@ghosttogether are you serious? You either speak on the right, or center or left. Do you think its a nice hearing experience?

  • @Sanjeev-ms4jb
    @Sanjeev-ms4jb 3 месяца назад +1

    video's content is good but the audio is trash, it feels like my ears got rap*d.