Révision | 695a8a9aa0323344274d3396c6d8cb7b9d267307 (tree) |
---|---|
l'heure | 2023-04-21 14:31:43 |
Auteur | badcoff33 <none@none> |
Commiter | badcoff33 |
new mappings
@@ -208,12 +208,18 @@ cmap <C-BS> <C-w> | ||
208 | 208 | cmap <C-Del> <C-Right><C-w> |
209 | 209 | |
210 | 210 | " Surfing the quickfix matches |
211 | -nnoremap <A-h> :colder<CR> | |
212 | -nnoremap <A-l> :cnewer<CR> | |
213 | -nnoremap <A-j> <cmd>cnext<CR> | |
214 | -nnoremap <A-k> <cmd>cprevious<CR> | |
211 | +nnoremap + <cmd>cnext<CR> | |
212 | +nnoremap - <cmd>cprevious<CR> | |
215 | 213 | |
216 | 214 | " Move between windows - This is boring {{{ |
215 | +nnoremap <A-h> <C-w>h | |
216 | +nnoremap <A-l> <C-w>l | |
217 | +nnoremap <A-k> <C-w>k | |
218 | +nnoremap <A-j> <C-w>j | |
219 | +inoremap <A-h> <Esc><C-w>h | |
220 | +inoremap <A-l> <Esc><C-w>l | |
221 | +inoremap <A-k> <Esc><C-w>k | |
222 | +inoremap <A-j> <Esc><C-w>j | |
217 | 223 | nnoremap <S-left> <C-w>h |
218 | 224 | nnoremap <S-right> <C-w>l |
219 | 225 | nnoremap <S-up> <C-w>k |
@@ -241,17 +247,17 @@ inoremap <C-s>) <C-o>B(<Esc>ea) | ||
241 | 247 | inoremap <C-s>] <C-o>B[<Esc>ea] |
242 | 248 | inoremap <C-s>} <C-o>B{<Esc>ea} |
243 | 249 | |
244 | -" toggle options | |
245 | -nnoremap +s <cmd>setlocal invspell spell? spelllang?<CR> | |
246 | -nnoremap +p <cmd>setlocal invpaste paste?<CR> | |
247 | -nnoremap +r <cmd>setlocal invrelativenumber<CR> | |
248 | -nnoremap +w <cmd>setlocal invwrap<CR> | |
249 | -nnoremap +g :<C-u>set grepprg=<C-r>=escape(&grepprg, ' ')<CR> | |
250 | - | |
251 | 250 | " Leader key mappings {{{ |
252 | 251 | let mapleader = " " |
253 | 252 | let maplocalleader = "!" |
254 | 253 | |
254 | +" toggle options | |
255 | +nnoremap <Leader>os <cmd>setlocal invspell spell? spelllang?<CR> | |
256 | +nnoremap <Leader>op <cmd>setlocal invpaste paste?<CR> | |
257 | +nnoremap <Leader>or <cmd>setlocal invrelativenumber<CR> | |
258 | +nnoremap <Leader>ow <cmd>setlocal invwrap<CR> | |
259 | +nnoremap <Leader>og :<C-u>set grepprg=<C-r>=escape(&grepprg, ' ')<CR> | |
260 | + | |
255 | 261 | " Edit files |
256 | 262 | nnoremap <Leader>, :edit <C-r>=expand("~/vimfiles") .. g:slash<CR> |
257 | 263 | nnoremap <Leader>. :edit <C-r>=((expand("%:h") == "") ? "." : expand("%:h") ) .. g:slash<CR> |