Révision | 8b62d90504229ad2aabc0d836881fc42ad8da280 (tree) |
---|---|
l'heure | 2022-04-01 03:20:35 |
Auteur | badcoff33 <none@none> |
Commiter | badcoff33 |
update files
@@ -11,6 +11,7 @@ nnoremap <buffer> K :help <C-r><C-w><CR> | ||
11 | 11 | |
12 | 12 | " Close help again |
13 | 13 | nmap <silent> <buffer> <Esc> :bd<CR> |
14 | +nmap <silent> <buffer> q :bd<CR> | |
14 | 15 | |
15 | 16 | " Show value of 'option' under cursor |
16 | 17 | nnoremap <buffer> <LocalLeader>o :set <C-r>=substitute(expand("<cword>"), "[^a-z]", "", "g")<CR>?<CR> |
@@ -18,4 +18,5 @@ let b:undo_ftplugin = "setlocal number< relativenumber< wrap< scrolloff<" | ||
18 | 18 | setlocal nonumber norelativenumber nowrap scrolloff=0 |
19 | 19 | |
20 | 20 | nnoremap <buffer> <Esc> :cclose<CR> |
21 | +nnoremap <buffer> q :cclose<CR> | |
21 | 22 |
@@ -42,7 +42,7 @@ let s:GuiBg = {str -> empty(str) ? "":"guibg=".str} | ||
42 | 42 | let s:GuiAttr = {str -> empty(str) ? "":"gui=".str} |
43 | 43 | |
44 | 44 | " Basics |
45 | -execute 'hi Normal' s:GuiFg(s:silver3) s:GuiBg(s:bg1) s:GuiAttr('NONE') | |
45 | +execute 'hi Normal' s:GuiFg(s:silver4) s:GuiBg(s:bg1) s:GuiAttr('NONE') | |
46 | 46 | execute 'hi Bold' s:GuiFg(s:silver2) s:GuiAttr('bold') |
47 | 47 | execute 'hi Italic' s:GuiFg(s:silver2) s:GuiAttr('italic') |
48 | 48 | execute 'hi NonText' s:GuiFg(s:blue1) s:GuiBg(s:bg1) |
@@ -7,11 +7,12 @@ vcs_cmd_clone = "hg clone -q" | ||
7 | 7 | vcs_cmd_pull = "hg pull -q" |
8 | 8 | |
9 | 9 | git_dict = { |
10 | - "pack/github/start/easy-align": "git@github.com:junegunn/vim-easy-align.git", | |
11 | - "pack/github/start/colorizer": "git@github.com:lilydjwg/colorizer.git", | |
12 | - "pack/github/opt/vista": "git@github.com:liuchengxu/vista.vim.git", | |
13 | - "pack/github/opt/signify": "git@github.com:mhinz/vim-signify.git", | |
14 | - "pack/github/opt/wordy": "git@github.com:preservim/vim-wordy.git" } | |
10 | + "pack/github/start/buffergator": "git@github.com:jeetsukumaran/vim-buffergator.git", | |
11 | + "pack/github/start/easy-align": "git@github.com:junegunn/vim-easy-align.git", | |
12 | + "pack/github/opt/colorizer": "git@github.com:lilydjwg/colorizer.git", | |
13 | + "pack/github/opt/vista": "git@github.com:liuchengxu/vista.vim.git", | |
14 | + "pack/github/start/signify": "git@github.com:mhinz/vim-signify.git", | |
15 | + "pack/github/opt/wordy": "git@github.com:preservim/vim-wordy.git" } | |
15 | 16 | |
16 | 17 | for subdir in git_dict: |
17 | 18 | git_url = git_dict[subdir] |
@@ -1,64 +1,70 @@ | ||
1 | -" Netrw variables | |
2 | -let g:netrw_use_errorwindow = 0 | |
3 | -let g:netrw_banner = 0 | |
4 | -let g:netrw_liststyle = 3 | |
5 | -let g:netrw_browse_split = 0 | |
6 | -let g:netrw_altv = 1 | |
7 | -let g:netrw_winsize = 25 | |
8 | -let g:netrw_preview = 1 | |
1 | +vim9script | |
2 | +# NETRW variables | |
3 | +g:netrw_use_errorwindow = 0 | |
4 | +g:netrw_banner = 0 | |
5 | +g:netrw_liststyle = 3 | |
6 | +g:netrw_browse_split = 0 | |
7 | +g:netrw_altv = 1 | |
8 | +g:netrw_winsize = 25 | |
9 | +g:netrw_preview = 1 | |
9 | 10 | |
10 | -" Start interactive EasyAlign in visual mode (e.g. vipga) | |
11 | +# BUFFERGATOR | |
12 | +g:buffergator_autoexpand_on_split = 0 | |
13 | + | |
14 | +# EASYALIGN | |
15 | +# Start interactive EasyAlign in visual mode (e.g. vipga) | |
11 | 16 | xmap <Leader>a <Plug>(EasyAlign) |
12 | -" Start interactive EasyAlign for a motion/text object (e.g. gaip) | |
17 | +# Start interactive EasyAlign for a motion/text object (e.g. gaip) | |
13 | 18 | nmap <Leader>a <Plug>(EasyAlign) |
14 | 19 | |
15 | -let g:dircfg = | |
16 | - \ { | |
17 | - \ 'HVH1x0_2_0': [ | |
18 | - \ 'command! -nargs=0 CtagsCommand Ctags -R C_Application C_CDD C_AUTOSAR/Sources C:/Daten/Common_3P/comp_SBC_UJA116x/1.3.1', | |
19 | - \ 'nnoremap <C-CR> :<C-u>Rg -tc -tcmake <C-r><C-w> . C:/Daten/Common_3P/comp_SBC_UJA116x/1.3.1<CR>', | |
20 | - \ 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*', | |
21 | - \ 'set path=C_AUTOSAR/**,C_Application/**,C_CDD/**,C_HvUnit/**,,', | |
22 | - \ 'set tagcase=match', | |
23 | - \ 'compiler ghs' | |
24 | - \ ], | |
25 | - \ 'RL78_data_flash': [ | |
26 | - \ 'command! -nargs=0 CtagsCommand Ctags -R main xcpbasicdrv mcur5f10agf sbcata663431 NvmDriver', | |
27 | - \ 'nnoremap <C-CR> :<C-u>Rg -tc -tcmake <C-r><C-w> .', | |
28 | - \ 'set path=main,xcpbasicdrv,mcur5f10agf,sbcata663431,NvmDriver,NvmDriver/**,,', | |
29 | - \ 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*', | |
30 | - \ 'set relativenumber', | |
31 | - \ 'compiler iar' | |
32 | - \ ], | |
33 | - \ 'RL78_evaluation': [ | |
34 | - \ 'command! -nargs=0 CtagsCommand Ctags -R main xcpbasicdrv mcur5f10agf sbcata663431', | |
35 | - \ 'nnoremap <C-CR> :<C-u>Rg -tc -tcmake <C-r><C-w> .', | |
36 | - \ 'set path=main,xcpbasicdrv,mcur5f10agf,sbcata663431,,', | |
37 | - \ 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*', | |
38 | - \ 'set relativenumber', | |
39 | - \ 'compiler iar' | |
40 | - \ ], | |
41 | - \ 'VIM':[ | |
42 | - \ 'cd ~\vimfiles', | |
43 | - \ 'set path=pack/**,colors,after/**,,', | |
44 | - \ 'set relativenumber' | |
45 | - \ ]} | |
20 | +# DIRCFG | |
21 | +g:dircfg = | |
22 | + { | |
23 | + 'HVH1x0_2_0': [ | |
24 | + 'command! -nargs=0 CtagsCommand Ctags -R C_Application C_CDD C_AUTOSAR/Sources C:/Daten/Common_3P/comp_SBC_UJA116x/1.3.1', | |
25 | + 'nnoremap <C-CR> :<C-u>Rg -tc -tcmake <C-r><C-w> . C:/Daten/Common_3P/comp_SBC_UJA116x/1.3.1<CR>', | |
26 | + 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*', | |
27 | + 'set path=C_AUTOSAR/**,C_Application/**,C_CDD/**,C_HvUnit/**,,', | |
28 | + 'set tagcase=match', | |
29 | + 'compiler ghs' | |
30 | + ], | |
31 | + 'RL78_data_flash': [ | |
32 | + 'command! -nargs=0 CtagsCommand Ctags -R main xcpbasicdrv mcur5f10agf sbcata663431 NvmDriver', | |
33 | + 'nnoremap <C-CR> :<C-u>Rg -tc -tcmake <C-r><C-w> .', | |
34 | + 'set path=main,xcpbasicdrv,mcur5f10agf,sbcata663431,NvmDriver,NvmDriver/**,,', | |
35 | + 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*', | |
36 | + 'set relativenumber', | |
37 | + 'compiler iar' | |
38 | + ], | |
39 | + 'RL78_evaluation': [ | |
40 | + 'command! -nargs=0 CtagsCommand Ctags -R main xcpbasicdrv mcur5f10agf sbcata663431', | |
41 | + 'nnoremap <C-CR> :<C-u>Rg -tc -tcmake <C-r><C-w> .', | |
42 | + 'set path=main,xcpbasicdrv,mcur5f10agf,sbcata663431,,', | |
43 | + 'set grepprg=rg\ --vimgrep\ -g\ *.[ch]\ $*', | |
44 | + 'set relativenumber', | |
45 | + 'compiler iar' | |
46 | + ], | |
47 | + 'VIM': [ | |
48 | + 'cd ~\vimfiles', | |
49 | + 'set path=pack/**,colors,after/**,,', | |
50 | + 'set relativenumber' | |
51 | + ]} | |
46 | 52 | |
47 | -""" WORDY | |
53 | +# WORDY | |
48 | 54 | |
49 | -" Define your own ring of dictionaries, overriding the default one in your .vimrc: | |
50 | -let g:wordy#ring = [ | |
51 | - \ 'weak', | |
52 | - \ ['being', 'passive-voice', ], | |
53 | - \ 'business-jargon', | |
54 | - \ 'weasel', | |
55 | - \ 'puffery', | |
56 | - \ ['problematic', 'redundant', ], | |
57 | - \ 'adjectives', | |
58 | - \ 'adverbs' | |
59 | - \ ] | |
55 | +# Define your own ring of dictionaries, overriding the default one in your .vimrc: | |
56 | +g:wordy#ring = [ | |
57 | + 'weak', | |
58 | + ['being', 'passive-voice', ], | |
59 | + 'business-jargon', | |
60 | + 'weasel', | |
61 | + 'puffery', | |
62 | + ['problematic', 'redundant', ], | |
63 | + 'adjectives', | |
64 | + 'adverbs' | |
65 | + ] | |
60 | 66 | |
61 | -" You can navigate the ring with the following commands: | |
62 | -" :NextWordy | |
63 | -" :PrevWordy | |
67 | +# You can navigate the ring with the following commands: | |
68 | +# :NextWordy | |
69 | +# :PrevWordy | |
64 | 70 |
@@ -168,6 +168,8 @@ cnoremap <expr> <A-,> $USERPROFILE..g:path_sep..'vimfiles'..g:path_sep | ||
168 | 168 | imap <C-CR> <C-]> |
169 | 169 | cmap <C-CR> <C-]> |
170 | 170 | |
171 | +nnoremap <PageDown> :cnext<CR> | |
172 | +nnoremap <PageUp> :cprevious<CR> | |
171 | 173 | nnoremap <C-j> :cnext<CR> |
172 | 174 | nnoremap <C-k> :cprevious<CR> |
173 | 175 | nnoremap n nzzzv |
@@ -194,7 +196,7 @@ set langmap=Ö\",ö:,ü{,ä},Ü[,Ä] | ||
194 | 196 | |
195 | 197 | " set leader and localleader keys, that works best for me |
196 | 198 | let mapleader = " " |
197 | -let maplocalleader = "-" | |
199 | +let maplocalleader = "+" | |
198 | 200 | |
199 | 201 | """ quick note taking |
200 | 202 | nnoremap <expr> <Leader>n ":drop "..strftime("~/Documents/Notes/note-%d-%m-%y.txt".."<CR>:setfiletype markdown<CR>") |
@@ -215,9 +217,12 @@ nnoremap <Leader>c :clist!<CR> | ||
215 | 217 | nnoremap <Leader>q :botright copen<CR>G |
216 | 218 | nnoremap <Leader>Q :cclose<CR> |
217 | 219 | |
220 | +""" zoom current buffer in seperate tab | |
221 | +nnoremap <Leader>z :tabedit %<CR> | |
222 | +nnoremap <Leader>x :tabclose<CR> | |
223 | + | |
218 | 224 | """ command line abbreviations |
219 | 225 | cabbrev e edit |
220 | -cabbrev t tabedit | |
221 | 226 | cabbrev f find |
222 | 227 | cabbrev j tjump |
223 | 228 | cabbrev b buffer |