• 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évisionf642761f359d146a5fd2f0b34224a2e8f1e34017 (tree)
l'heure2022-05-09 04:50:24
Auteurbadcoff33 <none@none>
Commiterbadcoff33

Message de Log

merged

Change Summary

Modification

--- a/after/ftplugin/markdown.vim
+++ b/after/ftplugin/markdown.vim
@@ -18,10 +18,11 @@ nnoremap <buffer> <LocalLeader>a :if !(&fo =~# 'a') <bar> setlocal fo+=a <bar> e
1818 nnoremap <buffer> <LocalLeader>x :call <SID>ToggleTodo()<CR>
1919
2020 " Preview in html
21-let b:css_file = expand('<sfile>:p:h')..g:path_sep.."markdown\\normalized.css"
22-let b:html_template_file = expand('<sfile>:p:h')..g:path_sep.."markdown\\template.html"
21+let b:css_file = expand('<sfile>:p:h').."\\markdown\\normalized.css"
2322 if filereadable(b:css_file)
24- command! -buffer Preview exe "terminal ++close ++hidden"
23+ let b:html_template_file = expand('<sfile>:p:h').."\\markdown\\template.html"
24+ command! -buffer PreviewHTML terminal ++close ++hidden cmd /C start .preview.html
25+ command! -buffer MakeHTML exe "terminal ++close ++hidden"
2526 \ .." pandoc -f gfm -t html5"
2627 \ .." --css="..b:css_file
2728 \ .." --template="..b:html_template_file
--- a/after/ftplugin/qf.vim
+++ b/after/ftplugin/qf.vim
@@ -20,6 +20,3 @@ setlocal nonumber norelativenumber nowrap scrolloff=0
2020 nnoremap <buffer> <Esc> :cclose<CR>
2121 nnoremap <buffer> q :cclose<CR>
2222 nnoremap <buffer> o :wincmd o<CR>
23-
24-nnoremap <buffer> <up> :cprevious<CR>zz<C-w>p
25-nnoremap <buffer> <down> :cnext<CR>zz<C-w>p
--- /dev/null
+++ b/after/ftplugin/terminal.vim
@@ -0,0 +1,7 @@
1+
2+setlocal signcolumn=no
3+setlocal nonumber
4+setlocal norelativenumber
5+setlocal foldcolumn=0
6+
7+nnoremap <buffer> <LeftMouse> :call feedkeys("i")<CR>
--- /dev/null
+++ b/autoload/swap.vim
@@ -0,0 +1,16 @@
1+
2+function! swap#OtherFileC()
3+ let extension = expand("%:e")
4+ let other_file = ""
5+ if extension == "c"
6+ let other_file = expand("%:r")..".h"
7+ elseif extension == "h"
8+ let other_file = expand("%:r")..".c"
9+ endif
10+ if filereadable(other_file)
11+ execute "edit" other_file
12+ else
13+ echo other_file "didn't exist"
14+ endif
15+endfunction
16+
--- a/plugins.vim
+++ b/plugins.vim
@@ -38,8 +38,8 @@ g:dircfg =
3838 'compiler ghs'
3939 ],
4040 'RL78_data_flash': [
41- 'command! -nargs=0 CtagsCommand Ctags -R main xcpbasicdrv mcur5f10agf sbcata663431 NvmDriver',
42- 'set path=main,xcpbasicdrv,mcur5f10agf,sbcata663431,NvmDriver,NvmDriver/**,,',
41+ 'command! -nargs=0 CtagsCommand Ctags -R NvmDriverT01 Software',
42+ 'set path=Software,Software\**,NvmDriverT01,NvmDriverT01/**,,',
4343 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*',
4444 'set relativenumber',
4545 'compiler iar'
--- a/vimrc
+++ b/vimrc
@@ -122,6 +122,7 @@ command! ShowChanges vert new | set bt=nofile | r ++edit # | 0d_ | diffthis | wi
122122 inoremap <Ins> <Esc>
123123 inoremap <k0> <Esc>
124124 inoremap <C-Space> <Esc>
125+inoremap <End> <Esc>
125126
126127 " Yank more consistent to D and dd commands
127128 nnoremap Y y$
@@ -143,16 +144,16 @@ vnoremap < <gv
143144
144145 " Window movement
145146 nnoremap <S-Right> <C-w>l
146-nnoremap <S-Left> <C-w>h
147-nnoremap <S-Up> <C-w>k
148-nnoremap <S-Down> <C-w>j
147+nnoremap <S-Left> <C-w>h
148+nnoremap <S-Up> <C-w>k
149+nnoremap <S-Down> <C-w>j
149150 tnoremap <S-Right> <C-\><C-n><C-w>l
150151 tnoremap <S-Left> <C-\><C-n><C-w>h
151152 tnoremap <S-Up> <C-\><C-n><C-w>k
152153 tnoremap <S-Down> <C-\><C-n><C-w>j
153154
154155 " To map <Esc> to exit terminal-mode: >
155-tnoremap <Esc> <C-\><C-n>
156+tnoremap <Esc> <C-\><C-n>
156157 tnoremap <LeftMouse> <C-\><C-n>
157158
158159 " Line bubbling
@@ -174,8 +175,8 @@ cnoreabbrev <expr> make (getcmdtype() ==# ':' && getcmdline() =~# '^make') ? '
174175 imap <C-CR> <C-]>
175176 cmap <C-CR> <C-]>
176177
177-nnoremap <C-Down> :cnext<CR>
178-nnoremap <C-Up> :cprevious<CR>
178+nnoremap <F12> :cnext<CR>
179+nnoremap <F11> :cprevious<CR>
179180 nnoremap <C-j> :cnext<CR>
180181 nnoremap <C-k> :cprevious<CR>
181182 nnoremap n nzzzv
@@ -260,4 +261,5 @@ let g:term = &term
260261 syntax on
261262
262263 runtime plugins.vim
264+
263265 " vim:sw=2:tw=78:nocindent:foldmethod=marker:nofen: