Skip to content
TinixPublic

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Rock

Neovim Configuration

This is a custom configuration project for the Neovim text editor. Neovim is an advanced and extensible version of Vim, offering improvements in performance, extensibility, and user experience.

The configuration covers aspects such as:

  • General Neovim options
  • Custom keyboard shortcuts
  • Autocommands (automatic events)
  • Plugin configuration

🚀 Installation

To install and configure this Neovim project, follow these steps:

  1. Make sure you have Neovim installed on your system. You can install it by following the instructions for your operating system on the official Neovim page.

  2. Clone this repository into your Neovim configuration directory:

    git clone https://github.com/Tinix/nvim-rock.git ~/.config/nvim
  3. Install the external tools:

    • fd: the binary can be fdfind (Debian/Ubuntu) or fd. Without it, Telescope uses its default finder.
    • make and a C compiler, to build telescope-fzf-native.
  4. Set OPENAI_API_KEY (for example in ~/.zshrc), used by ChatGPT.nvim.

Neovim Keymaps Configuration

🎯 General Configuration

Leader Keys

  • Leader: Space
  • Local Leader: Space

Files and Windows

Key Action Description
Ctrl+s Save Save current file
Space+q Quit Close Neovim
Space+Q Force quit Close all without saving

Window Navigation

Key Action
Ctrl+h Move to left window
Ctrl+j Move to lower window
Ctrl+k Move to upper window
Ctrl+l Move to right window

Window Resizing

Key Action
Ctrl+↑ Increase height
Ctrl+↓ Decrease height
Ctrl+← Decrease width
Ctrl+→ Increase width

Buffer Navigation

Key Action
Shift+l Next buffer
Shift+h Previous buffer

📝 Moving Lines and Text

Option 1: Shift+Alt (QWERTY)

Key Mode Action
Shift+Alt+j Normal/Visual Move line/selection down
Shift+Alt+k Normal/Visual Move line/selection up

Option 2: Ctrl+Shift (Most Reliable)

Key Mode Action
Ctrl+Shift+j Normal/Visual Move line/selection down
Ctrl+Shift+k Normal/Visual Move line/selection up

Option 3: Dvorak Layout

Key Mode Action
Shift+Alt+t Normal/Visual Move line/selection down
Shift+Alt+n Normal/Visual Move line/selection up

🔄 Editing and Selection

Indentation

Key Mode Action
< Visual Indent left
> Visual Indent right

Special Paste

Key Mode Action
p Visual Paste without yanking selection

🌳 File Explorer (NvimTree)

Key Action
Ctrl+e Toggle file explorer

🎹 Dvorak Layout - Movement

Basic Navigation

Dvorak Key Equivalent Action
h h Left
t j Down
n k Up
s l Right

🤖 Artificial Intelligence

ChatGPT

Key Mode Action
Space+cc Normal Open ChatGPT
Space+ce Visual Edit with instruction
Space+cg Visual Grammar correction
Space+ct Visual Translate
Space+ck Visual Extract keywords
Space+cd Visual Generate docstring
Space+ca Visual Add tests
Space+co Visual Optimize code
Space+cs Visual Summarize
Space+cf Visual Fix bugs
Space+cx Visual Explain code
Space+cr Visual Roxygen edit
Space+cl Visual Code readability analysis

💡 Tips

  • Recommended: Use Ctrl+Shift+j/k to move lines (works in all terminals)
  • For Dvorak: Use Shift+Alt+t/n which corresponds to vertical movement keys
  • Visual Mode: Select text with Shift+v before using movement commands
  • Persistence: Indentation keeps selection active to repeat the action

🚀 Quick Usage Guide

  1. Select lines: Shift+v (visual line mode)
  2. Move down: Ctrl+Shift+j
  3. Move up: Ctrl+Shift+k
  4. Indent: > or < (maintains selection)

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages