Coder Social home page Coder Social logo

nvim's Introduction

Nvim for lua

跟着下面的安装步骤,进行安装...

1.Install

sudo pacman -S node unzip git

2.安装Packer.nvim插件管理器

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim

下载配置文件

mv -r ~/.config/nvim ~/.config/nvim.bak
cd ~/.config
git clone --depth 1 [email protected]:zhouEmo/nvim.git nvim

# 安装插件
:PackerInstall  

自定义快捷键

可从nvim/lua/keymap.lua 文件中查看相关

ctrl + u 向上翻页
ctrl + u 向下翻页
leader + w  write
leader + t Open ToggleTerm
> 缩进代码
< 缩进代码
sv 水平分屏
sh 垂直分屏
sc 关闭当前分屏 (c = close)
so 关闭其他分屏 (p = other)
s> s< s= sj sk 分屏比例控制(支持鼠标拖拽)
alt + hjkl 在窗口之间跳转
Ctrl + p 搜索文件
leader + f 搜索文件
leader + g 搜索实时grep
bufferline 左右切换 Ctrl + h/l
ctrl + n Open/Close nvimTree
zc zo 折叠 {} 里的内容
leader + i nvim-treesitter 代码格式化
leader + s + o  显示符号表

nvim's People

Contributors

zhouemo avatar

Watchers

 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.