Sign Up 👻👻👉 https://semicolon.dev/YouTube
(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
Watch video VSCode Vim Keyboard Shortcuts Tutorial online without registration, duration hours minute second in high quality. This video was added by user Ghost Together 23 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 19,656 once and liked it 502 people.