From 45dd538726649a6b02d1c500a708b0149bd6b249 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Tue, 4 Oct 2022 16:01:55 +0200 Subject: [PATCH] changes in vim manipulation of last oppened buffer --- config_files/.vimrc | 3 +++ tutos/vim.txt | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config_files/.vimrc b/config_files/.vimrc index efed60f..a948360 100644 --- a/config_files/.vimrc +++ b/config_files/.vimrc @@ -55,6 +55,9 @@ set number " don't allow wrap set nowrap +" make the previous buffer be the last modified file and not the file explorer +" see `:help g:netrw_altfile` +let g:netrw_altfile = 1 "--------------------------------------------------------------- diff --git a/tutos/vim.txt b/tutos/vim.txt index 7a50417..97811fc 100644 --- a/tutos/vim.txt +++ b/tutos/vim.txt @@ -16,12 +16,15 @@ **:** mode commande **work with multiple files :** **:e** open a new file in new buffer + **:e C-d** print the list of files in current directory + **:e C-d** auto complete with a mathing name of files in current directory **:b ** roll between opened files **:set hidden** add that to be able to cancel changes **:ls** list buffer oppened + **:x bw** delete buffer number x, even if it's a directory + **:bd** delete buffer **:bp** go to previous buffer **:bn** go to next buffer - **:bd** delete buffer **:b#** switch to last edited buffer **:explore / :ex** navigate through directory, rename, and plus **search through files :**