VSCode Vim Keyboard Shortcuts Tutorial

  Рет қаралды 16,620

Ghost Together

Ghost Together

Күн бұрын

Sign Up 👻👻👉 semicolon.dev/KZbin
(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

Пікірлер: 21
@jrodericklane
@jrodericklane Жыл бұрын
Something is very wrong with the audio. Almost makes me nauseous.
@shuncho7844
@shuncho7844 26 күн бұрын
Thank you so much, its really nice to use vscode functionality with the vim keybindings
@softwaretestinglearninghub
@softwaretestinglearninghub Жыл бұрын
Great shortcuts, thank you!
@Redyf
@Redyf 9 ай бұрын
Those are some useful keybinds, thanks!
@danielmalka6824
@danielmalka6824 Жыл бұрын
very helpful !!!! very very very very very very very (using macros now thanks to you!)
@eijstech5273
@eijstech5273 Жыл бұрын
i LOVE YOU!
@marco6ocram
@marco6ocram 8 ай бұрын
Thanks
@tylerlaprade642
@tylerlaprade642 4 ай бұрын
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?
@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?
@tacobabyman1215
@tacobabyman1215 11 ай бұрын
My EARS!
@uveermadho1471
@uveermadho1471 11 ай бұрын
lil bro hes raping my brain
@gbvtech
@gbvtech 5 ай бұрын
tried setting up a vimrc file with just a value of `set relativenumber` but it does not work, any idea why?
@wogvorph
@wogvorph 11 ай бұрын
Hey, with TAB enabled how do I fill auto suggested code while typing?
@Mrramneek2
@Mrramneek2 Жыл бұрын
good video 👍 .. please work on your audio
@adam29334
@adam29334 Жыл бұрын
Please, mono audio
@ghosttogether
@ghosttogether Жыл бұрын
huh why?
@klapaucius515
@klapaucius515 Жыл бұрын
@@ghosttogether cause this is super weird, lol
@frankk9583
@frankk9583 Жыл бұрын
@@ghosttogether bro this is no asmr video, get back 2 feet from the mic and switch to mono
@robosergTV
@robosergTV 2 ай бұрын
@@ghosttogether are you serious? You either speak on the right, or center or left. Do you think its a nice hearing experience?
@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.
@Sanjeev-ms4jb
@Sanjeev-ms4jb 2 ай бұрын
video's content is good but the audio is trash, it feels like my ears got rap*d.
From Vim To Zed
19:03
ThePrimeTime
Рет қаралды 213 М.
I tried 10 code editors
10:28
Fireship
Рет қаралды 2,9 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 2,7 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 20 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
Must-have gadget for every toilet! 🤩 #gadget
00:27
GiGaZoom
Рет қаралды 10 МЛН
30 VSCode Keyboard Shortcuts You NEED to Know
17:15
ArjanCodes
Рет қаралды 61 М.
Как быстро освоить Vim / Neovim?
23:31
PurpleSchool | Anton Larichev
Рет қаралды 49 М.
ThePrimeagen Hacks My Productivity
3:30
Scott Macchia
Рет қаралды 38 М.
Getting Started with Vim in Visual Studio Code
8:14
Suboptimal Engineer
Рет қаралды 179 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 395 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 267 М.
Why I Switched From NEOVIM To VSCODE
13:45
Anthony GG
Рет қаралды 20 М.
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,3 МЛН
Vim As Your Editor - Introduction
12:24
ThePrimeagen
Рет қаралды 807 М.
Intermediate Vim Motions and Pro Tips!!!
7:26
Dispatch
Рет қаралды 19 М.
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 2,7 МЛН