Giter VIP home page Giter VIP logo

nvimrc's Introduction

Nvim settings

My vimrc preferences

Keymaps

My keymaps for reference. The leader key is configured to be SPACE

Resize

Keymap Command Description
C-Up :resize -2 Command to resize a panel in up direction
C-Down :resize +2 Command to resize a panel in down direction
C-Left :vertical resize -2 Command to resize a panel in left direction
C-Right :vertical resize +2 Command to resize a panel in right direction

Navigation

Keymap Command Description
leader pv vim.cmd.Ex Command to open directory tree
S-l :bnext Go to next buffer
S-h :bprevious Go to previous buffer

Selection

Keymap Command Description
< <gv Move selected lines foward without loose selection
> >gv Move selected lines backward without loose selection

Plugin

Keymap Command Description
leader py (Prettier) Execute prettier

Make a note

To create a note without leaving vim. Tmux installed is needed. It create one file note per day. It use a script created inside bin folder. Put the notetaker script as executable and move to a PATH directory

[TODO]

  • set a env variable to configure save files path directory
  • menu to choose a note file
Keymap Command Description
leader N :!notetaker Create a note
leader n notes.take_note Create a note adding the current file path, line and column
leader rn notes.read_last_note Open notes file

Marks buffer

To mark a buffer and jump to it by pressing a key. It is configured to have 4 marks.

[TODO]

  • Create a menu to show buffer markeds
Keymap Command Description
leader mm marks.mark_file Mark current buffer on next free slot
leader mr marks.remove_current_file Remove current buffer as marked file
leader ma marks.mark_file(1) Mark current buffer on mark 1
leader ms marks.mark_file(2) Mark current buffer on mark 2
leader md marks.mark_file(3) Mark current buffer on mark 3
leader mf marks.mark_file(4) Mark current buffer on mark 4
leader a marks.jump_to_marked_file(1) Jump to mark 1
leader s marks.jump_to_marked_file(2) Jump to mark 2
leader d marks.jump_to_marked_file(3) Jump to mark 3
leader f marks.jump_to_marked_file(4) Jump to mark 4

nvimrc's People

Stargazers

 avatar Gabriel Hijazi avatar Caroline Avellar avatar

Watchers

Yuri S. dos Santos 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.