• 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évision2d96c2325e75eff3521f074abc41c68741331740 (tree)
l'heure2022-03-22 15:20:10
Auteurbadcoff33 <none@none>
Commiterbadcoff33

Message de Log

update

Change Summary

Modification

--- a/autoload/lib/popup.vim
+++ b/autoload/lib/popup.vim
@@ -1,19 +1,27 @@
1+function! lib#popup#top_right(text)
2+ return popup_create(a:text, #{
3+ \ pos: "topright",
4+ \ line: 1,
5+ \ col: &columns,
6+ \ time: 2500,
7+ \ tabpage: -1,
8+ \ highlight: 'PmenuSel',
9+ \ padding: [1,1,1,1],
10+ \ maxwidth: (&columns * 2) / 3
11+ \ })
12+endfunction
13+
114 function! lib#popup#bottom_right(text)
2- if type(a:text) == v:t_list
3- let w = 0
4- for e in a:text
5- let w = max([w, e])
6- endfor
7- return popup_create(a:text, #{
8- \ pos: "botright",
9- \ line: &lines - 2,
10- \ col: &columns,
11- \ time: 2500,
12- \ tabpage: -1,
13- \ highlight: 'PmenuSel',
14- \ padding: [1,1,1,1]
15- \ })
16- endif
15+ return popup_create(a:text, #{
16+ \ pos: "botright",
17+ \ line: &lines - 2,
18+ \ col: &columns,
19+ \ time: 2500,
20+ \ tabpage: -1,
21+ \ highlight: 'PmenuSel',
22+ \ padding: [1,1,1,1],
23+ \ maxwidth: (&columns * 2) / 3
24+ \ })
1725 endfunction
1826
1927 function! lib#popup#bottom_left(text)
--- a/autoload/run.vim
+++ b/autoload/run.vim
@@ -17,7 +17,7 @@ function! run#close(ch)
1717 let dict_name = GetJobDictName(a:ch)
1818 execute 'call setqflist([], "r", ' dict_name ')'
1919 let text = "job done: "..eval(dict_name..'["title"]')
20- let winid = lib#popup#bottom_left(text)
20+ let winid = lib#popup#top_right(text)
2121 call setwinvar(winid, "&wrap", 0)
2222 endfunction
2323
--- a/colors/twotone.vim
+++ b/colors/twotone.vim
@@ -45,7 +45,7 @@ execute 'hi StatusLineNC' s:GuiFg(s:silver2) s:GuiBg(s:silver7) s:GuiAttr('NONE'
4545 execute 'hi VertSplit' s:GuiFg(s:silver9) s:GuiBg(s:silver9) s:GuiAttr('NONE')
4646 execute 'hi IncSearch' s:GuiFg(s:white) s:GuiBg(s:black) s:GuiAttr('none')
4747 execute 'hi Search' s:GuiFg(s:black) s:GuiBg(s:silver8) s:GuiAttr('NONE')
48-execute 'hi MatchParen' s:GuiFg(s:silver1) s:GuiBg(s:silver9) s:GuiAttr('underline')
48+execute 'hi MatchParen' s:GuiFg(s:blue) s:GuiBg('bg') s:GuiAttr('bold')
4949 execute 'hi QuickFixLine' s:GuiFg(s:red) s:GuiBg(s:white) s:GuiAttr('bold,italic')
5050 execute 'hi CursorLine' s:GuiBg(s:silver9)
5151 execute 'hi CursorLineNr' s:GuiFg(s:silver1) s:GuiBg(s:silver7) s:GuiAttr('bold')
--- a/gvimrc
+++ b/gvimrc
@@ -5,7 +5,7 @@ nnoremap <expr> <leader>h11 ':set guifont='..FontFamily()..':h11<CR>'
55 nnoremap <expr> <leader>h10 ':set guifont='..FontFamily()..':h10<CR>'
66 nnoremap <expr> <leader>h9 ':set guifont='..FontFamily()..':h9<CR>'
77
8-set guifont=JetBrains_Mono:h10 linespace=2
8+set guifont=Courier_Prime:h11 linespace=2
99 set guioptions=!a
1010 set guicursor+=a:blinkon0
1111 set renderoptions=
--- a/plugin/run.vim
+++ b/plugin/run.vim
@@ -5,5 +5,5 @@ command! -complete=file -nargs=* Make call run#run({'cmd':'make <args>', 'hidden
55 command! -complete=file -nargs=* Rg call run#run({'cmd':'rg --vimgrep <args>', 'hidden':0, 'regexp':&grepformat})
66
77 nnoremap <leader><f7> :<C-u>Make -s<space>
8-nnoremap <f7> <cmd>:Make -s<up><cr>
8+nnoremap <f7> :<C-u>Make -s<up><cr>
99 imap <f7> <Esc><f7>,
--- a/vimrc
+++ b/vimrc
@@ -185,8 +185,9 @@ inoremap <C-Space>} <C-o>db{<C-r>-}
185185 let g:vim_home = expand('<sfile>:p:h')
186186 let g:path_sep = has('unix') ? '/' : '\'
187187
188-""" make use of german keys
189-set langmap=ü/,Ü?,ö],Ö[,ä},Ä{
188+""" make use of Umlaut keys
189+"set langmap=ü/,Ü?,ö],Ö[,ä},Ä{
190+set langmap=Ö\",ö:
190191
191192 " set leader and localleader keys, that works best for me
192193 let mapleader = " "
@@ -197,7 +198,7 @@ let LsFilter = { ft -> has_key(g:ft2regex, ft) ? g:ft2regex[ft] : ''}
197198 nnoremap <expr> <Leader>b ':filter /'..LsFilter(&ft)..'/ ls<CR>'
198199
199200 """ quick note taking
200-nnoremap <expr> <Leader>n ":edit "..strftime("~/Documents/Notes/note-%d-%m-%y.txt".."<CR>:setfiletype markdown<CR>")
201+nnoremap <expr> <Leader>n ":drop "..strftime("~/Documents/Notes/note-%d-%m-%y.txt".."<CR>:setfiletype markdown<CR>")
201202
202203 """ toggle options
203204 nnoremap <Leader>oh :set invhlsearch hlsearch?<CR>
@@ -219,6 +220,12 @@ nnoremap <Leader>Q :cclose<CR>
219220 cnoremap <expr> <A-.> expand("%:h")..g:path_sep
220221 cnoremap <expr> <A-,> $USERPROFILE..g:path_sep..'vimfiles'..g:path_sep
221222
223+""" command line abbreviations
224+cabbrev E edit
225+cabbrev T tabedit
226+cabbrev F find
227+cabbrev J tjump
228+
222229 command! -nargs=0 IC :set ignorecase nosmartcase
223230 command! -nargs=0 CS :set noignorecase nosmartcase
224231 command! -nargs=0 SC :set ignorecase smartcase