diff --git a/README.md b/README.md index 0893f96..dff39bd 100644 --- a/README.md +++ b/README.md @@ -54,12 +54,6 @@ tested in Ubuntu 18.04 See `install/build_nvim_from_source.sh` -##### Python3 -```bash -sudo apt install neovim python3-pynvim -pip3 install neovim -``` - #### VSCode Neovim TODO @@ -76,7 +70,19 @@ TODO Environment variables to setup: `$DOC2` `$CODE_HOME` -## Vimrc +## Directory Structure + +| Directory Name | Description | +| :--------------- | :------------------------------------ | +| install | installation scripts | +| project_dotfiles | dotfiles for a project | +| root | dotfiles and full vim configurations | +| terminal | configurations for terminal emulators | +| wsl | scripts for WSL | + +### Vimrc Files + +**Vim** - Full vimrc file: `.vim/vimrc` - Default configurations: see header of `.vim/vimrc` @@ -86,6 +92,10 @@ Environment variables to setup: `$DOC2` `$CODE_HOME` - Custom vim configuration file `~/config_single_vimrc.vim` - Local vimrc file: `.vimrc` (:h 'exrc') +**Neovim** + +- init.vim of Neovim: `root/.config/nvim` + ## Install Plugins Manually vim-plug home: `~/plugged`, run `:PlugInstall`. `PlugInstall` can also update helptags for plugins. diff --git a/terminal_config/.wezterm.lua b/terminal/.wezterm.lua similarity index 100% rename from terminal_config/.wezterm.lua rename to terminal/.wezterm.lua diff --git a/terminal_config/README.md b/terminal/README.md similarity index 100% rename from terminal_config/README.md rename to terminal/README.md diff --git a/tools/alacritty.ahk b/terminal/alacritty.ahk similarity index 100% rename from tools/alacritty.ahk rename to terminal/alacritty.ahk diff --git a/terminal_config/alacritty.yml b/terminal/alacritty.yml similarity index 100% rename from terminal_config/alacritty.yml rename to terminal/alacritty.yml diff --git a/terminal_config/alapasty.vim b/terminal/alapasty.vim similarity index 100% rename from terminal_config/alapasty.vim rename to terminal/alapasty.vim diff --git a/tools/kitty.c b/tools/kitty.c deleted file mode 100644 index 64d84c6..0000000 --- a/tools/kitty.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2023 Yinzuo Jiang - */ -// gcc -o no_terminal.exe sumarapdf_no_terminal.c -mwindows -#include - -#include - -void execute_command(char *command) { - STARTUPINFO si; - PROCESS_INFORMATION pi; - - ZeroMemory(&si, sizeof(si)); - si.cb = sizeof(si); - si.dwFlags = STARTF_USESHOWWINDOW; - si.wShowWindow = SW_HIDE; // 隐藏新的控制台窗口 - - ZeroMemory(&pi, sizeof(pi)); - - if (!CreateProcess(NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { - printf("CreateProcess failed (%d).\n", GetLastError()); - return; - } - - // 等待子进程结束 - WaitForSingleObject(pi.hProcess, INFINITE); - - // 关闭子进程和主线程的句柄 - CloseHandle(pi.hProcess); - CloseHandle(pi.hThread); -} - -int main(int argc, char**argv) { - execute_command("wsl.exe --cd ~ -e kitty"); - return 0; -} -