# my_neovim_configuration **Repository Path**: Ya_Qia/my_neovim_configuration ## Basic Information - **Project Name**: my_neovim_configuration - **Description**: Update monthly - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-15 - **Last Updated**: 2021-12-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: Vim, Neovim, Cpp, cmake ## README # Neovim Configuration ## 1. Some Original multi cursor support ### 1.1 Indent multiple lines 1. Shitf+v to switch into visual line mode 2. use j/k to navigate between lines 3. use >/< to indent/outdent selected lines ### 1.2 Comment multiple lines 1. Ctrl+v to swtich into visual block mode 2. use h/j/k/l to navigate between lines 3. use // for c/c++ code, # for python code. > if you want to uncomment multiple lines, you can select blocks and type x ## 2 Features - NerdTree filesystem: Ctrl+n to open/close - Intergrated terminal: Alt+t to open(close is simply :q or type exit on terminal) - Coc-c++ intellisense: Remember to set CMake configuration ```cmake set(CMAKE_EXPORT_COMPILE_COMMANDS ON) ``` Please open terminal and type: ```bash ln -s build/compile_commands.json . ``` After that, you'll have the correct c++ intellisense in vim. - CMake build: Ctrl+b to build, Ctrl+c to close the window. - Some themes: best for me, please enjoy by yourselves. - Error Lists: Ctrl+e to open it, use Q to close it just like other windows. - Auto select: Ctrl+S to select any fraction you want, e.g. if statements, for loops and so on. - Brief infomations: Ctrl+d to show information under the cursor. - Rename variables: Ctrl+r in normal mode(this operation is not supported in insert mode) ## 3 Installation ### 3.1 Install neovim ```bash sudo apt-get install neovim ``` ### 3.2 Install vim-plug ```bash sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.\ vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' ``` ### 3.3 copy configuration files ```bash cd my_neovim_configuration mkdir -p ~/.config/nvim cp -r nvim/ ~/.config/nvim ``` ### 3.4 Install plugins Open vim, type :PlugInstall. And all required plugins will be installed. ### 3.5 Install coc.nvim plugins ```vim :CocInstall coc-clangd coc-cmake coc-highlight coc-markdown-preview-enhanced :CocInstall coc-git coc-markdownlint coc-pairs coc-pyright coc-sh coc-snippets :CocInstall coc-syntax coc-vimlsp coc-webview coc-yaml ``` ## 4 Unfinished works coc-snippets is not set effectively, fuzzy search is still unkown for me. ## Enjoy it