From 4a716ddc9fcee371cffb18dd75ca18c4fddc6f99 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Tue, 1 Dec 2020 14:01:02 +0100 Subject: [PATCH] qq modifs --- .vimrc | 77 ++++++++++++++++++++++++++++++++++++++---------------- README.txt | 2 ++ screen.txt | 1 + vim.txt | 4 +++ 4 files changed, 62 insertions(+), 22 deletions(-) diff --git a/.vimrc b/.vimrc index fc85464..7f188c5 100644 --- a/.vimrc +++ b/.vimrc @@ -4,29 +4,61 @@ " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " -" " -" ADDS BY HUGOGOGO " -" " +" " +" ADDS BY HUGOGOGO " +" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "--------------------------------------------------------------- " settings de base "--------------------------------------------------------------- -"set showcmd "Show (partial) command in status line. -set showmatch "Show matching brackets. -set ignorecase "Do case insensitive matching -set smartcase "Do smart case matching -"set incsearch "Incremental search -"set autowrite "Automatically save before commands like :next and :make -"set hidden "Hide buffers when they are abandoned -"set mouse=a "Enable mouse usage (all modes) -syntax on "turns on syntax hilighting -colo torte "utilise la coloration 'torte' -set tabstop=4 "regle une tabulation egale a quatre espaces -set autoindent "indent chaque nouvelle ligne comme la precedente -set number "ajoute les numeros de ligne -"set list "whitespace characters are made visible -set wrap "le texte passe a la ligne automatiquement +"" Show (partial) command in status line. +"set showcmd + +"" Show matching brackets. +set showmatch + +"" Do case insensitive matching +set ignorecase + +"" Do smart case matching +set smartcase + +"" Incremental search +"set incsearch + +"" Automatically save before commands like :next and :make +"set autowrite + +"" Hide buffers when they are abandoned +"set hidden + +"" Enable mouse usage (all modes) +"set mouse=a + +"" turns on syntax hilighting +syntax on + +"" use coloration 'torte' +"" and specify no coloration in the background +colo elflord +highlight Normal ctermbg=NONE +highlight nonText ctermbg=NONE + +""regle une tabulation egale a quatre espaces +set tabstop=4 + +"" indent chaque nouvelle ligne comme la precedente +set autoindent + +"" ajoute les numeros de ligne +set number + +"" whitespace characters are made visible +"set list + +"" le texte passe a la ligne automatiquement +set wrap "--------------------------------------------------------------- @@ -36,7 +68,8 @@ set wrap "le texte passe a la ligne automatiquement " dossier courrant, le double slash demande a vim de donner au " swap file un nom avec son chemin d'acces pour eviter que deux " fichiers du meme noms posent un probleme -" set directory=~/.vim/swapfiles// + +set directory=~/.vim/swapfiles// "--------------------------------------------------------------- @@ -119,9 +152,9 @@ command! End $s/$/\r\r<\/div>\r<\/div>\r<\/body>\r<\/html> " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " -" " -" END OF HUGOGOGO'S ADDS " -" " +" " +" END OF HUGOGOGO'S ADDS " +" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " diff --git a/README.txt b/README.txt index 84edb25..45d9e1d 100644 --- a/README.txt +++ b/README.txt @@ -14,6 +14,8 @@ MYSCREEN="$HOME/config/.screenrc" VIM="$HOME/.vimrc" MYVIM="$HOME/config/.vimrc" +# create the ~/.vim/swapfiles folder if necessary : +mkdir -p ~/.vim/swapfiles ZSH="$HOME/.zshrc" MYZSH="$HOME/config/.zshrc" diff --git a/screen.txt b/screen.txt index 6a75a56..9d35bd4 100644 --- a/screen.txt +++ b/screen.txt @@ -12,6 +12,7 @@ **ctrl-a tab** switch from one splited window to another **ctrl-a n** or **p** move to the next or previous windows **ctrl-a c** start new terminal (in the new window) + **screen** prompt command "screen" to open a new window in the same directory **ctrl-a space** next terminal **ctrl-a backspace** previous terminal **ctrl-a ctrl a** flip flop between to terminal diff --git a/vim.txt b/vim.txt index 5a8267f..268d18d 100644 --- a/vim.txt +++ b/vim.txt @@ -14,6 +14,10 @@ **:wq** ou **ZZ** enregister et quitter **:q!** force a quitter **:** mode commande +**work with multiple files :** + **:e** open a new file + **:b ** roll between opened files + **:set hidden** add that to be able to cancel changes **:%y+** copie toutes les lignes DANS LE CLIPBOARD **:set paste** copier sans les effets des tabulations **: up** affiche les dernieres commandes