Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

Personal Vim Settings

I have used vim since 2007, it was a very nice editor and I think it was once of the best investments in my life because even when it was little bit complicated to understand it at the beginning is my first tools when I code or when I need to change configurations files on a server.

The only challenge with this great tool is to try to migrate my settings from one computer to an other one, almost all the time I ends to just look on internet some vimrc samples that help to what I want to do for each moment.

Given that inconvenient I create this repo to keep my configurations up and running and ready to be copied for me to an other machine. At the same time I hope that my configuration could help to some one else.

Dependencies

First we need to instal vim-plug

How to install

General dependencies

Some server are required due the LSP configuration. Please install the following server:

Linux

$ git clone git@github.com:VictorCabello/PersonalVimSettings.git ~/.config/nvim

Maps Cheat Sheet

In this section I would like to document the different maps that are already implemented on my settings.

<leader>w         Quick Save 
*                 On visual mode search current selection
#                 On visual mode search current selection
<space>           Find until the end of the document           
Crl-<space>       Find until the begining of the document           
<leader><cr>      Clear search findings
<C-j>             Move between windows down
<C-k>             Move between windows up
<C-h>             Move between windows rigth
<C-l>             Move between windows left
<leader>bd        Close the current buffer
<leader>ba        Close all the buffers
<leader>l         Next buffer
<leader>h         Previous buffer
<leader>tn        New Tab
<leader>to        Close other tabs
<leader>tc        Close current tab
<leader>tm        Move Tab
<leader>t<leader> Next Tab
<leader>tl        move to last tab
<leader>te        Opens a new tab with the current buffer's path
<leader>cd        Switch CWD to the directory of the open buffer
<leader>ss        Pressing ,ss will toggle and untoggle spell checking
<leader>sn        ]s
<leader>sp        [s
<leader>sa        zg
<leader>s?        z=
<M-j>             Move a line of text using ALT+[jk] or Command+[jk] on mac
<M-k>             Move a line of text using ALT+[jk] or Command+[jk] on mac
<M-j>             Move a line of text using ALT+[jk] or Command+[jk] on mac
<M-k>             Move a line of text using ALT+[jk] or Command+[jk] on mac
<leader>nn        Open file tree on the current path
<leader>nb        Open file tree on the bookmarks
<leader>nf        Open file tree on the path of the active file
<leader>z         Write without distractions or comeback to normality
<leader>zl        More focus
<leader>a         Enable/disable the linter
<Leader>m         Remove Window ^M
<leader>q         Open buffer for scribble
<leader>x         Open markdown buffer for scribble
<leader>pp        Toggle paste mode on and off
<leader>e         Quick edit vim configs
<leader>o         Show open buffers
<leader>f         Show resent files
<C-p> or <C-n>    Sustitue paste for older o newer
<leader>nn        Open/close File Browser
<leader>nb        Open/close bookmarks
<leader>nf        Open/close File Browser with current file

Special thanks

I took a lot of configurations from amix, I really recommend you to take a look on his repo and check the way that he organize his settings, it is really awesome.

In the other hand I really like the plugin vim-plug, to make my configuration portable I just copy its main configuration file but I really recommend to take a look on its repo to understand all the nice features that vim-plug provide.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages