Skip to content

Commit

Permalink
obsidian(gyunseo laptop): A src/assets/image/install-neovim-extension…
Browse files Browse the repository at this point in the history
…-on-vscode-1695879355411.jpeg, M src/content/blog/install-neovim-extension-on-vscode.md 2023-09-28 14:36:29

Affected files:
src/assets/image/install-neovim-extension-on-vscode-1695879355411.jpeg
src/content/blog/install-neovim-extension-on-vscode.md
  • Loading branch information
Gyunseo Lee authored and Gyunseo Lee committed Sep 28, 2023
1 parent 742fabb commit 483cba7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/content/blog/install-neovim-extension-on-vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,20 @@ endif

Shell에서 input method를 바꿔주는 [im-select](https://github.com/daipeihust/im-select)라는 프로그램이 있다.
이를 이용해서, insert mode를 떠날 때, `im-select 1033` 명령어를 실행하게 하여 normal mode에서는 Windows 상에서 Locale 번호가 1033인 US Keyboard를 사용하게 하도록한다.
`im-select.exe` windows binary를 다운 받고, `C:\im-select\im-select.exe`에 저장한다.
그리고 `init.vim`을 하기와 같이 편집한다.

```vim
autocmd InsertLeave * : silent !C:\\im-select\\im-select.exe 1033
if exists('g:vscode')
" VSCode extension
else
" ordinary Neovim
endif
```

## vscode settings에서 `init.vim` path 설정

![](/src/assets/image/install-neovim-extension-on-vscode-1695879355411.jpeg)
vscode에서 상기 이미지와 같이 `init.vim` path를 설정한다.

0 comments on commit 483cba7

Please sign in to comment.