Browse code

Ajouts au vimrc

schardon authored on 23/04/2020 13:37:47
Showing 3 changed files
... ...
@@ -83,6 +83,8 @@ mbbill/undotree
83 83
   %                         -- Passer de l'ouverture a la fermeture d'un ({[ <=> ]})
84 84
   :w/<filename>             -- Enregistrer sous
85 85
 
86
+  dw                        -- Supprimer un mot
87
+
86 88
 ** Folds
87 89
   zf3j                      -- Creer un fold des 3 lignes en dessous
88 90
   za                        -- Toggle le fold
... ...
@@ -94,8 +96,8 @@ mbbill/undotree
94 96
   C-i C-o                   -- Omni-completion
95 97
 
96 98
 ** Marques
97
-  ma                        -- Poser le marqueur 'a'
98
-  'a                        -- Aller au marqueur 'a'
99
+  <F9> / ma                 -- Poser le marqueur 'a'
100
+  <F10> / 'a                -- Aller au marqueur 'a'
99 101
   :marks                    -- Lister les marqueurs
100 102
 
101 103
 ** Persos
... ...
@@ -103,12 +105,11 @@ mbbill/undotree
103 105
 
104 106
   C-f / <leader><Up>        -- Cree un fold ?{ to %}
105 107
   <leader><Down>            -- Cree un fold /{ to %}
106
-  <F9>                      -- Toogle fold
108
+  <F8>                      -- Toogle fold
107 109
   <leader><PageUp>          -- Ferme tous les folds
108 110
   <leader><PageDown>        -- Ouvre tous les folds
109 111
 
110
-  <F7>                      -- Syntaxe : Infos
111
-  <F8>                      -- Syntaxe : Errors
112
+  <F7>                      -- Syntaxe : Errors
112 113
 
113 114
   <leader><Left>/<Right>    -- Ajoute/Enleve 1 indentation
114 115
 
... ...
@@ -1,3 +1,4 @@
1
+.git*
1 2
 *.swp
2 3
 *.exe
3 4
 *.o
... ...
@@ -117,7 +117,7 @@ set ttyfast
117 117
 
118 118
 set background=dark
119 119
 colorscheme palenight
120
-"let g:palenight_terminal_italics=1
120
+let g:palenight_terminal_italics=1
121 121
 
122 122
 " Surligne la ligne en cours
123 123
 set cursorline
... ...
@@ -203,7 +203,7 @@ nmap <C-f> ?{<CR>zf%za:noh<CR>
203 203
 nmap <leader><Down> /{<CR>zf%za:noh<CR>
204 204
 nnoremap <leader><Up> ?{<CR>zf%za:noh<CR>
205 205
 " Toggle le fold en cours
206
-nmap <F9> za
206
+nmap <F8> za
207 207
 " Ouvre tous les folds
208 208
 nnoremap <leader><PageDown> zR
209 209
 " Ferme tous les folds
... ...
@@ -341,8 +341,7 @@ let g:syntastic_check_on_open = 1
341 341
 let g:syntastic_check_on_wq = 0
342 342
 
343 343
 " Infos de syntaxe
344
-nmap <F7> :SyntasticInfo<CR>
345
-nmap <F8> :Errors<CR>
344
+nmap <F7> :Errors<CR>
346 345
 
347 346
 
348 347
 
... ...
@@ -425,6 +424,11 @@ autocmd VimEnter *.sh noremap <leader><leader> 0i#<ESC>
425 424
 " Clear search highlighting
426 425
 nnoremap <Esc><Esc> :noh<CR>
427 426
 
427
+" Marqeur
428
+nmap <F9> ma
429
+imap <F9> <C-O>ma
430
+nmap <F10> 'a
431
+nmap <F10> <C-O>'a
428 432
 
429 433
 
430 434