Révision | f642761f359d146a5fd2f0b34224a2e8f1e34017 (tree) |
---|---|
l'heure | 2022-05-09 04:50:24 |
Auteur | badcoff33 <none@none> |
Commiter | badcoff33 |
merged
@@ -18,10 +18,11 @@ nnoremap <buffer> <LocalLeader>a :if !(&fo =~# 'a') <bar> setlocal fo+=a <bar> e | ||
18 | 18 | nnoremap <buffer> <LocalLeader>x :call <SID>ToggleTodo()<CR> |
19 | 19 | |
20 | 20 | " 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" | |
23 | 22 | 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" | |
25 | 26 | \ .." pandoc -f gfm -t html5" |
26 | 27 | \ .." --css="..b:css_file |
27 | 28 | \ .." --template="..b:html_template_file |
@@ -20,6 +20,3 @@ setlocal nonumber norelativenumber nowrap scrolloff=0 | ||
20 | 20 | nnoremap <buffer> <Esc> :cclose<CR> |
21 | 21 | nnoremap <buffer> q :cclose<CR> |
22 | 22 | 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 |
@@ -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> |
@@ -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 | + |
@@ -38,8 +38,8 @@ g:dircfg = | ||
38 | 38 | 'compiler ghs' |
39 | 39 | ], |
40 | 40 | '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/**,,', | |
43 | 43 | 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*', |
44 | 44 | 'set relativenumber', |
45 | 45 | 'compiler iar' |
@@ -122,6 +122,7 @@ command! ShowChanges vert new | set bt=nofile | r ++edit # | 0d_ | diffthis | wi | ||
122 | 122 | inoremap <Ins> <Esc> |
123 | 123 | inoremap <k0> <Esc> |
124 | 124 | inoremap <C-Space> <Esc> |
125 | +inoremap <End> <Esc> | |
125 | 126 | |
126 | 127 | " Yank more consistent to D and dd commands |
127 | 128 | nnoremap Y y$ |
@@ -143,16 +144,16 @@ vnoremap < <gv | ||
143 | 144 | |
144 | 145 | " Window movement |
145 | 146 | 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 | |
149 | 150 | tnoremap <S-Right> <C-\><C-n><C-w>l |
150 | 151 | tnoremap <S-Left> <C-\><C-n><C-w>h |
151 | 152 | tnoremap <S-Up> <C-\><C-n><C-w>k |
152 | 153 | tnoremap <S-Down> <C-\><C-n><C-w>j |
153 | 154 | |
154 | 155 | " To map <Esc> to exit terminal-mode: > |
155 | -tnoremap <Esc> <C-\><C-n> | |
156 | +tnoremap <Esc> <C-\><C-n> | |
156 | 157 | tnoremap <LeftMouse> <C-\><C-n> |
157 | 158 | |
158 | 159 | " Line bubbling |
@@ -174,8 +175,8 @@ cnoreabbrev <expr> make (getcmdtype() ==# ':' && getcmdline() =~# '^make') ? ' | ||
174 | 175 | imap <C-CR> <C-]> |
175 | 176 | cmap <C-CR> <C-]> |
176 | 177 | |
177 | -nnoremap <C-Down> :cnext<CR> | |
178 | -nnoremap <C-Up> :cprevious<CR> | |
178 | +nnoremap <F12> :cnext<CR> | |
179 | +nnoremap <F11> :cprevious<CR> | |
179 | 180 | nnoremap <C-j> :cnext<CR> |
180 | 181 | nnoremap <C-k> :cprevious<CR> |
181 | 182 | nnoremap n nzzzv |
@@ -260,4 +261,5 @@ let g:term = &term | ||
260 | 261 | syntax on |
261 | 262 | |
262 | 263 | runtime plugins.vim |
264 | + | |
263 | 265 | " vim:sw=2:tw=78:nocindent:foldmethod=marker:nofen: |