Skip to content

Instantly share code, notes, and snippets.

@BooookStore
Last active November 7, 2022 03:32
Show Gist options
  • Save BooookStore/0a0b2137c20616daaeea4107e10b51d2 to your computer and use it in GitHub Desktop.
Save BooookStore/0a0b2137c20616daaeea4107e10b51d2 to your computer and use it in GitHub Desktop.
エディタの設定ファイル
" <leader> を <space> に変更
let mapleader = " "
" クリップボード設定
set clipboard=unnamed
" プラグイン有効化
set NERDTree
set easymotion
set highlightedyank
set ideajoin
set argtextobj
" highlightedyank設定
let g:highlightedyank_highlight_duration = "1000"
" ウィンドウ分割
nnoremap ss <C-w>s
nnoremap sv <C-w>v
" ウィンドウ移動
nnoremap sh <C-w>h
nnoremap sj <C-w>j
nnoremap sk <C-w>k
nnoremap sl <C-w>l
" タ切り替え
nnoremap <C-l> :action NextTab<CR>
nnoremap <C-h> :action PreviousTab<CR>
{
"workbench.startupEditor": "welcomePage",
"workbench.iconTheme": "vscode-icons",
// -----------------------------------------------------------------------------
// エディタの設定
// -----------------------------------------------------------------------------
"editor.fontFamily": "'JetBrains Mono'",
"editor.fontLigatures": true,
"editor.tabSize": 2,
"editor.stickyScroll.enabled": true,
// デフォルトのフォーマッターをPrettierに設定
"editor.defaultFormatter": "esbenp.prettier-vscode",
// シェルスクリプトはshell-formatに設定
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
// -----------------------------------------------------------------------------
// markdown設定
// -----------------------------------------------------------------------------
"[markdown]": {
"editor.fontFamily": "'JetBrains Mono', 'Ubuntu', 'Source Han Serif', 'UD デジタル 教科書体 N-R', '筑紫A丸ゴシック'",
"editor.fontSize": 15,
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.wordWrap": "on",
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
},
"files.autoGuessEncoding": false,
"files.autoSave": "afterDelay",
"terminal.integrated.fontFamily": "'JetBrains Mono'",
"extensions.ignoreRecommendations": true,
"remote.SSH.remotePlatform": {
"Ubuntu": "linux",
"mbp.local": "macOS",
"ubuntu": "linux",
"vagrant-ubuntu": "linux"
},
// -----------------------------------------------------------------------------
// Vim設定
// -----------------------------------------------------------------------------
"vim.easymotion": true,
"vim.useSystemClipboard": true,
"vim.incsearch": true,
"vim.hlsearch": true,
"vim.leader": "<space>",
"vim.insertModeKeyBindings": [
// ESC
{
"before": ["<C-j>"],
"after": ["<ESC>"]
}
],
"vim.normalModeKeyBindings": [
// ハイライトの無効化
{
"before": ["<ESC>", "<ESC>"],
"commands": [":nohl"]
},
// エディタグループの分割
{
"before": ["s", "s"],
"commands": ["workbench.action.splitEditorOrthogonal"]
},
{
"before": ["s", "v"],
"commands": ["workbench.action.splitEditor"]
},
// エディタグループの移動
{
"before": ["s", "h"],
"commands": ["workbench.action.focusLeftGroup"]
},
{
"before": ["s", "j"],
"commands": ["workbench.action.focusBelowGroup"]
},
{
"before": ["s", "k"],
"commands": ["workbench.action.focusAboveGroup"]
},
{
"before": ["s", "l"],
"commands": ["workbench.action.focusRightGroup"]
},
{
"before": ["<C-l>"],
"commands": ["workbench.action.nextEditor"]
},
{
"before": ["<C-h>"],
"commands": ["workbench.action.previousEditor"]
},
// 折返し行に対応
{
"before": ["j"],
"after": ["g", "j"]
},
{
"before": ["k"],
"after": ["g", "k"]
}
],
"vim.handleKeys": {
"<C-w>": true,
"<C-k>": false,
"<C-t>": false,
"<C-b>": false,
"<C-q>": false
},
"workbench.colorTheme": "GitHub Dark",
"window.commandCenter": true,
"security.workspace.trust.untrustedFiles": "open",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment