• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision695a8a9aa0323344274d3396c6d8cb7b9d267307 (tree)
l'heure2023-04-21 14:31:43
Auteurbadcoff33 <none@none>
Commiterbadcoff33

Message de Log

new mappings

Change Summary

Modification

--- a/vimrc
+++ b/vimrc
@@ -208,12 +208,18 @@ cmap <C-BS> <C-w>
208208 cmap <C-Del> <C-Right><C-w>
209209
210210 " 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>
215213
216214 " 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
217223 nnoremap <S-left> <C-w>h
218224 nnoremap <S-right> <C-w>l
219225 nnoremap <S-up> <C-w>k
@@ -241,17 +247,17 @@ inoremap <C-s>) <C-o>B(<Esc>ea)
241247 inoremap <C-s>] <C-o>B[<Esc>ea]
242248 inoremap <C-s>} <C-o>B{<Esc>ea}
243249
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-
251250 " Leader key mappings {{{
252251 let mapleader = " "
253252 let maplocalleader = "!"
254253
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+
255261 " Edit files
256262 nnoremap <Leader>, :edit <C-r>=expand("~/vimfiles") .. g:slash<CR>
257263 nnoremap <Leader>. :edit <C-r>=((expand("%:h") == "") ? "." : expand("%:h") ) .. g:slash<CR>