vim: colorscheme & minor tweaks (#1)
This commit was merged in pull request #1.
This commit is contained in:
@@ -11,7 +11,7 @@ set textwidth=89
|
||||
set nowrap
|
||||
|
||||
" Wrap at word boundaries
|
||||
" set linebreak
|
||||
" set linebreak
|
||||
" Maintain indentation on wrapped lines
|
||||
" set breakindent
|
||||
" Optional: visual indicator for wrapped lines
|
||||
@@ -36,6 +36,7 @@ set backspace=indent,eol,start
|
||||
|
||||
set background=dark
|
||||
colorscheme theunixzoo
|
||||
"colorscheme chill
|
||||
"colorscheme plain-cterm
|
||||
"colorscheme aomi-grayscale
|
||||
"colorscheme solarized8
|
||||
@@ -119,6 +120,23 @@ let g:copilot_enabled = 0
|
||||
" map key to enable copilot
|
||||
nmap <leader>cp :let g:copilot_enabled = 1<CR>
|
||||
|
||||
def ShowPalette()
|
||||
vnew
|
||||
setlocal buftype=nofile bufhidden=wipe noswapfile
|
||||
|
||||
# Iterate through all highlight groups
|
||||
for group in getcompletion('', 'highlight')
|
||||
# Skip cleared/empty groups
|
||||
if hlexists(group)
|
||||
append(line('$'), group)
|
||||
# Use syntax keyword to apply the highlight group to its own name
|
||||
exec 'syntax keyword ' .. group .. ' ' .. group
|
||||
endif
|
||||
endfor
|
||||
enddef
|
||||
|
||||
command! ShowPalette call ShowPalette()
|
||||
|
||||
" format any yaml file
|
||||
" autocmd BufWritePre *.yaml :%!yq -i %
|
||||
|
||||
|
||||
Reference in New Issue
Block a user