Révision | 2d96c2325e75eff3521f074abc41c68741331740 (tree) |
---|---|
l'heure | 2022-03-22 15:20:10 |
Auteur | badcoff33 <none@none> |
Commiter | badcoff33 |
update
@@ -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 | + | |
1 | 14 | 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 | + \ }) | |
17 | 25 | endfunction |
18 | 26 | |
19 | 27 | function! lib#popup#bottom_left(text) |
@@ -17,7 +17,7 @@ function! run#close(ch) | ||
17 | 17 | let dict_name = GetJobDictName(a:ch) |
18 | 18 | execute 'call setqflist([], "r", ' dict_name ')' |
19 | 19 | let text = "job done: "..eval(dict_name..'["title"]') |
20 | - let winid = lib#popup#bottom_left(text) | |
20 | + let winid = lib#popup#top_right(text) | |
21 | 21 | call setwinvar(winid, "&wrap", 0) |
22 | 22 | endfunction |
23 | 23 |
@@ -45,7 +45,7 @@ execute 'hi StatusLineNC' s:GuiFg(s:silver2) s:GuiBg(s:silver7) s:GuiAttr('NONE' | ||
45 | 45 | execute 'hi VertSplit' s:GuiFg(s:silver9) s:GuiBg(s:silver9) s:GuiAttr('NONE') |
46 | 46 | execute 'hi IncSearch' s:GuiFg(s:white) s:GuiBg(s:black) s:GuiAttr('none') |
47 | 47 | 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') | |
49 | 49 | execute 'hi QuickFixLine' s:GuiFg(s:red) s:GuiBg(s:white) s:GuiAttr('bold,italic') |
50 | 50 | execute 'hi CursorLine' s:GuiBg(s:silver9) |
51 | 51 | execute 'hi CursorLineNr' s:GuiFg(s:silver1) s:GuiBg(s:silver7) s:GuiAttr('bold') |
@@ -5,7 +5,7 @@ nnoremap <expr> <leader>h11 ':set guifont='..FontFamily()..':h11<CR>' | ||
5 | 5 | nnoremap <expr> <leader>h10 ':set guifont='..FontFamily()..':h10<CR>' |
6 | 6 | nnoremap <expr> <leader>h9 ':set guifont='..FontFamily()..':h9<CR>' |
7 | 7 | |
8 | -set guifont=JetBrains_Mono:h10 linespace=2 | |
8 | +set guifont=Courier_Prime:h11 linespace=2 | |
9 | 9 | set guioptions=!a |
10 | 10 | set guicursor+=a:blinkon0 |
11 | 11 | set renderoptions= |
@@ -5,5 +5,5 @@ command! -complete=file -nargs=* Make call run#run({'cmd':'make <args>', 'hidden | ||
5 | 5 | command! -complete=file -nargs=* Rg call run#run({'cmd':'rg --vimgrep <args>', 'hidden':0, 'regexp':&grepformat}) |
6 | 6 | |
7 | 7 | 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> | |
9 | 9 | imap <f7> <Esc><f7>, |
@@ -185,8 +185,9 @@ inoremap <C-Space>} <C-o>db{<C-r>-} | ||
185 | 185 | let g:vim_home = expand('<sfile>:p:h') |
186 | 186 | let g:path_sep = has('unix') ? '/' : '\' |
187 | 187 | |
188 | -""" make use of german keys | |
189 | -set langmap=ü/,Ü?,ö],Ö[,ä},Ä{ | |
188 | +""" make use of Umlaut keys | |
189 | +"set langmap=ü/,Ü?,ö],Ö[,ä},Ä{ | |
190 | +set langmap=Ö\",ö: | |
190 | 191 | |
191 | 192 | " set leader and localleader keys, that works best for me |
192 | 193 | let mapleader = " " |
@@ -197,7 +198,7 @@ let LsFilter = { ft -> has_key(g:ft2regex, ft) ? g:ft2regex[ft] : ''} | ||
197 | 198 | nnoremap <expr> <Leader>b ':filter /'..LsFilter(&ft)..'/ ls<CR>' |
198 | 199 | |
199 | 200 | """ 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>") | |
201 | 202 | |
202 | 203 | """ toggle options |
203 | 204 | nnoremap <Leader>oh :set invhlsearch hlsearch?<CR> |
@@ -219,6 +220,12 @@ nnoremap <Leader>Q :cclose<CR> | ||
219 | 220 | cnoremap <expr> <A-.> expand("%:h")..g:path_sep |
220 | 221 | cnoremap <expr> <A-,> $USERPROFILE..g:path_sep..'vimfiles'..g:path_sep |
221 | 222 | |
223 | +""" command line abbreviations | |
224 | +cabbrev E edit | |
225 | +cabbrev T tabedit | |
226 | +cabbrev F find | |
227 | +cabbrev J tjump | |
228 | + | |
222 | 229 | command! -nargs=0 IC :set ignorecase nosmartcase |
223 | 230 | command! -nargs=0 CS :set noignorecase nosmartcase |
224 | 231 | command! -nargs=0 SC :set ignorecase smartcase |