mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
No commits in common. "3f6615710cc2b7a37af3f6bd44d5af617535af90" and "5ebf075ae269e6006b3130cb819eef479dc74dfb" have entirely different histories.
3f6615710c
...
5ebf075ae2
4 changed files with 4 additions and 34 deletions
|
@ -98,12 +98,10 @@
|
||||||
call s:hi('WarningMsg', 0x9, 'NONE', '', '')
|
call s:hi('WarningMsg', 0x9, 'NONE', '', '')
|
||||||
call s:hi('TooLong', 0x8, '', '', '')
|
call s:hi('TooLong', 0x8, '', '', '')
|
||||||
call s:hi('Debug', 0x8, '', '', '')
|
call s:hi('Debug', 0x8, '', '', '')
|
||||||
hi! link CocErrorSign Error
|
hi! link CocErrorSign Error
|
||||||
call s:hi('CocWarningSign', 'bg', 0xA, '', '')
|
call s:hi('CocWarningSign', 'bg', 0xA, '', '')
|
||||||
call s:hi('CocInfoSign', 'bg', 0xD, '', '')
|
call s:hi('CocInfoSign', 'bg', 0xD, '', '')
|
||||||
hi! link CocHintSign CocInfoSign
|
hi! link CocHintSign CocInfoSign
|
||||||
call s:hi('CocFadeOut', 0x3, '', '', '')
|
|
||||||
hi! link CocMarkdownLink Underlined
|
|
||||||
|
|
||||||
call s:hi('FoldColumn', 0xC, 0x1, '', '')
|
call s:hi('FoldColumn', 0xC, 0x1, '', '')
|
||||||
call s:hi('Folded', 0x3, 0x1, '', '')
|
call s:hi('Folded', 0x3, 0x1, '', '')
|
||||||
|
|
|
@ -100,8 +100,7 @@ set commentstring=//%s
|
||||||
nnoremap <C-n> <C-i>
|
nnoremap <C-n> <C-i>
|
||||||
nnoremap <C-p> <C-o>
|
nnoremap <C-p> <C-o>
|
||||||
|
|
||||||
" Source of this trick: <https://youtu.be/bQfFvExpZDU?t=268>
|
nnoremap Q <nop>
|
||||||
nnoremap Q gq
|
|
||||||
|
|
||||||
" normal mode
|
" normal mode
|
||||||
nnoremap <leader>dg :.diffget<CR>
|
nnoremap <leader>dg :.diffget<CR>
|
||||||
|
@ -111,18 +110,10 @@ set commentstring=//%s
|
||||||
xnoremap <leader>dp :diffput<CR>
|
xnoremap <leader>dp :diffput<CR>
|
||||||
|
|
||||||
" Horizontal scroll
|
" Horizontal scroll
|
||||||
" Alt+hjkl and Alt+Arrow - scroll one column/row
|
|
||||||
" Alt+Shift+hjkl - scroll half a page
|
|
||||||
" normal mode
|
" normal mode
|
||||||
nnoremap <M-h> zh
|
nnoremap <M-h> zh
|
||||||
nnoremap <M-H> zH
|
nnoremap <M-H> zH
|
||||||
nnoremap <M-Left> zh
|
nnoremap <M-Left> zh
|
||||||
nnoremap <M-j> <C-e>
|
|
||||||
nnoremap <M-J> <C-d>
|
|
||||||
nnoremap <M-Down> <C-e>
|
|
||||||
nnoremap <M-k> <C-y>
|
|
||||||
nnoremap <M-K> <C-u>
|
|
||||||
nnoremap <M-Up> <C-y>
|
|
||||||
nnoremap <M-l> zl
|
nnoremap <M-l> zl
|
||||||
nnoremap <M-L> zL
|
nnoremap <M-L> zL
|
||||||
nnoremap <M-Right> zl
|
nnoremap <M-Right> zl
|
||||||
|
@ -130,12 +121,6 @@ set commentstring=//%s
|
||||||
xnoremap <M-h> zh
|
xnoremap <M-h> zh
|
||||||
xnoremap <M-H> zH
|
xnoremap <M-H> zH
|
||||||
xnoremap <M-Left> zh
|
xnoremap <M-Left> zh
|
||||||
xnoremap <M-j> <C-e>
|
|
||||||
xnoremap <M-J> <C-d>
|
|
||||||
xnoremap <M-Down> <C-e>
|
|
||||||
xnoremap <M-k> <C-y>
|
|
||||||
xnoremap <M-K> <C-u>
|
|
||||||
xnoremap <M-Up> <C-y>
|
|
||||||
xnoremap <M-l> zl
|
xnoremap <M-l> zl
|
||||||
xnoremap <M-L> zL
|
xnoremap <M-L> zL
|
||||||
xnoremap <M-Right> zl
|
xnoremap <M-Right> zl
|
||||||
|
|
|
@ -93,7 +93,6 @@ endif
|
||||||
let g:airline_symbols = {
|
let g:airline_symbols = {
|
||||||
\ 'readonly': 'RO',
|
\ 'readonly': 'RO',
|
||||||
\ 'whitespace': "\u21e5 ",
|
\ 'whitespace': "\u21e5 ",
|
||||||
\ 'colnr': '',
|
|
||||||
\ 'linenr': '',
|
\ 'linenr': '',
|
||||||
\ 'maxlinenr': ' ',
|
\ 'maxlinenr': ' ',
|
||||||
\ 'branch': '',
|
\ 'branch': '',
|
||||||
|
@ -104,7 +103,6 @@ endif
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:airline#extensions#coc#enabled = 1
|
let g:airline#extensions#coc#enabled = 1
|
||||||
let g:airline#extensions#po#enabled = 0
|
let g:airline#extensions#po#enabled = 0
|
||||||
let g:airline#extensions#scrollbar#enabled = 0
|
|
||||||
|
|
||||||
let g:airline#extensions#tabline#left_sep = ' '
|
let g:airline#extensions#tabline#left_sep = ' '
|
||||||
let g:airline#extensions#tabline#left_alt_sep = ''
|
let g:airline#extensions#tabline#left_alt_sep = ''
|
||||||
|
@ -127,17 +125,6 @@ endif
|
||||||
endfunction
|
endfunction
|
||||||
call airline#parts#define('filesize', { 'function': 'StatusLine_filesize' })
|
call airline#parts#define('filesize', { 'function': 'StatusLine_filesize' })
|
||||||
|
|
||||||
" Undo this commit a little bit:
|
|
||||||
" <https://github.com/vim-airline/vim-airline/commit/8929bc72a13d358bb8369443386ac3cc4796ca16>
|
|
||||||
call airline#parts#define('maxlinenr', {
|
|
||||||
\ 'raw': '/%L%{g:airline_symbols.maxlinenr}',
|
|
||||||
\ 'accent': 'bold',
|
|
||||||
\ })
|
|
||||||
call airline#parts#define('colnr', {
|
|
||||||
\ 'raw': '%{g:airline_symbols.colnr}:%v',
|
|
||||||
\ 'accent': 'none',
|
|
||||||
\ })
|
|
||||||
|
|
||||||
function s:airline_section_prepend(section, items)
|
function s:airline_section_prepend(section, items)
|
||||||
let g:airline_section_{a:section} = airline#section#create_right(a:items + ['']) . g:airline_section_{a:section}
|
let g:airline_section_{a:section} = airline#section#create_right(a:items + ['']) . g:airline_section_{a:section}
|
||||||
endfunction
|
endfunction
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
count() { print -r -- "$#"; }
|
count() { print -r -- "$#"; }
|
||||||
|
|
||||||
bytecount() { wc -c "$@" | bytefmt2; }
|
bytecount() { wc -c "$@" | numfmt --to=iec-i; }
|
||||||
|
|
||||||
mkcd() { mkdir -p "$@" && cd "${@[-1]}"; }
|
mkcd() { mkdir -p "$@" && cd "${@[-1]}"; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue