Skip to content

shinrel22/xoan-nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

This is a nvim config example

Key map features

I try to avoid C- combinations for the things I do frequently, mapping things that make sense to the <leader> key. The leader key provides a facility for creating customized shortcuts that can be further restricted to apply only in certain modes, such as normal, insert, visual, terminal (neovim-specific), etc.

The leader key is normally defined by the mapleader variable as \. Many people like to redefine it to ,. I prefer ; since it sits right under my right pinkie.

Leader key

;

In the section below, you can substitute ; for whatever you have configured for you <leader> key.

Insert mode

Shortcut Action
;; Escape (exit insert mode)

Normal mode

Shortcut Action
;tr Toggle NERD Tree, a file tree explorer.
;tb Toggle tagbar
;cs Redraw and ald also clear current highlighted search items (note: l' is lowercase L, not number 1`)
C-p Open fuzzy finder (for files, buffers, etc)
Shortcut Action
;ec Edit vim/neovim config
;sc Source (reload) the config (save it first with :w)
;w Toggle wrap
bv Create a new (empty) buffer to the right of a vertical split
bh Create a new (empty) buffer below a horizontal split
;bb Toggle between current and last buffer
;bn Go to next buffer
;bp Go tp prev buffer
;bd Delete current buffer
;bk Kill current buffer (don't prompt to save changes)
;bl List buffers
;tt Open a full screen terminal
;tv Open a terminal in a new split to the right
;th Open a terminal in a new split below

Go support

Shortcut Action
gd go-def
;gd go-doc
;gv go-doc in a new vertical split to the right
;gb go-doc for current word in a new browser window/tab
;gs go-implements
gi go-info

To learn more or customize yourself, see fatih/vim-go and read this.

Terminal mode

Shortcut Action
C-x Quit terminal buffer

Any mode

Shortcut Action
A-h Go to buffer to the left
A-j Go to buffer below
A-k Go to buffer above
A-l go to buffer to the right

About

Vim configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published