Giter Site home page Giter Site logo

nvim's Introduction

Nvim config

vim

  • Support javascript, typescript, react, c, c#, bash, tailwindcss, html, css, sass, emmet
  • Support transparent background

Install

  • ⚠️ Backup your configuration before installation
  • ⚠️ Open neovim command mode use :
$ pip install neovim
$ ln -s ~/dotfiles/.config/nvim ~/.config
$ nvim
# Command mode
  :PackerInstall # Install plugin

Vim action select/yank/delete content between brackets

Action Command Bracket
v,y,d i {, (, [
v,y,d i }, ), ]

Mapping surround.vim

  • cs: change surround
  • ds: delete surround
  • ys: you surround
Old text Command New text
"Hello World!" cs"' 'Hello World!'
'Hello World!' cs' Hello World!
Hello World! cst" "Hello World!"
"Hello World!" dst" Hello World!
Hello World! ysiw] [ Hello ] World!
[ Hello ] World! yss) ( [ Hello ] World! )

⚠️ Use the closing ), },... not insert space

  • In visual mode, a simple S with an argument wraps the selection.
Old text Command New text
Hello World! S" "Hello World!"

Mapping neovim

Key Mapping
> Indent block right
< Indent block left
n Next word search
N Previous word search
K Move line up
J Move line down
leader + Enter Disable highlight search
Ctrl + n Toggle NvimTree(File explorer)
Ctrl + h,j,k,l Switch Split Window
leader + v New Split Vertical
leader + x Switch Split Horizontal
leader + sv Source reload vim config
- or + Increment/Decrement number
Ctrl + a Select All
Ctrl + s Save File

Telescope

Key Mapping
leader + f Telescope

Switch Buffer Tab

Key Mapping
Alt + . Next Buffer
Alt + , Prev Buffer
Alt + > Move Next Buffer
Alt + < Move Prev Buffer
Alt + c Close Buffer
leader + b BufferLine

Git

Key Mapping
leader + g Gitsigns

Mapping lsp-config

Key Mapping
leader + l LSP
] + d Diagnostic goto next (error or warning)
[ + d Diagnostic goto previous (error or warning)
K Lsp buffer hover
Ctrl + k Lsp buffer signature help

Mapping hop (Easy Motion)

Key Mapping
leader + j Jump

Mapping dap debug

Key Mapping
F5 Dap Continue (Start)
F10 Dap Step Over
F11 Dap Step Into
F12 Dap Step Out
leader + d Dap

Terminal

Key Mapping
leader + t Terminal
Ctrl + t Toggle Terminal
2 + Ctrl + t New Split Terminal Bottom. Example: (2 or 3,...)
Ctrl + \ Exit Insert Terminal
Ctrl + h,j,k,l Switch Terminal and Vim Buffer

nvim's People

Contributors

phamhiep2506 avatar sirzanty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.