mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 19:54:10 -05:00
Added a versions control line highlight toggle keymapping to <ctrl><f7>
+ associated line highlight colours in the theme, and an extra key mapping for diffu was adding "<leader>><" in addition to "<leader><>" since they're both so similar.
This commit is contained in:
parent
f2b068ade9
commit
69e43649ce
2 changed files with 19 additions and 10 deletions
|
@ -364,6 +364,9 @@ call s:X("DiffText","#000000","#c6c6c6","italic",s:termBlack,"White")
|
||||||
call s:X("SignifySignAdd","#ffd787","","bold","","Yellow")
|
call s:X("SignifySignAdd","#ffd787","","bold","","Yellow")
|
||||||
call s:X("SignifySignDelete","#d75f5f","","bold","","Red")
|
call s:X("SignifySignDelete","#d75f5f","","bold","","Red")
|
||||||
call s:X("SignifySignChange","#87d7ff","","bold","","Blue")
|
call s:X("SignifySignChange","#87d7ff","","bold","","Blue")
|
||||||
|
hi! link SignifyLineAdd DiffAdd
|
||||||
|
hi! link SignifyLineDelete DiffDelete
|
||||||
|
hi! link SignifyLineChange DiffChange
|
||||||
hi! link gitconfigAssignment Label
|
hi! link gitconfigAssignment Label
|
||||||
|
|
||||||
"html
|
"html
|
||||||
|
|
|
@ -63,6 +63,7 @@
|
||||||
" <F5> | (A) -> toggle spell check
|
" <F5> | (A) -> toggle spell check
|
||||||
" <F6> | (A) -> toggle syntax checking
|
" <F6> | (A) -> toggle syntax checking
|
||||||
" <F7> | (A) -> toggle version control differences
|
" <F7> | (A) -> toggle version control differences
|
||||||
|
" <Ctrl-F7> | (A) -> toggle version control difference line highlight
|
||||||
" <F8> | (A) -> toggle the tagbar sidebar
|
" <F8> | (A) -> toggle the tagbar sidebar
|
||||||
" <Ctrl-F8> | (A) -> toggle the location list to check syntax errors
|
" <Ctrl-F8> | (A) -> toggle the location list to check syntax errors
|
||||||
" <F9> | (A) -> toggle the gundo undo history sidebar
|
" <F9> | (A) -> toggle the gundo undo history sidebar
|
||||||
|
@ -162,8 +163,9 @@
|
||||||
" Filetype Specific Mappings:
|
" Filetype Specific Mappings:
|
||||||
" (vimdiff)
|
" (vimdiff)
|
||||||
" <Leader><> | (N) -> update differences
|
" <Leader><> | (N) -> update differences
|
||||||
|
" <Leader>>< | (N) -> update differences
|
||||||
" <Leader>> | (N) -> replace diff in other pane with current pane
|
" <Leader>> | (N) -> replace diff in other pane with current pane
|
||||||
" <Leader>< | (N) -> replace diff in current pane with other pane
|
" <Leader<< | (N) -> replace diff in current pane with other pane
|
||||||
"
|
"
|
||||||
" (help)
|
" (help)
|
||||||
" q | (N) -> close the dialog
|
" q | (N) -> close the dialog
|
||||||
|
@ -251,27 +253,27 @@
|
||||||
nnoremap <Space> za
|
nnoremap <Space> za
|
||||||
|
|
||||||
"unmap F1 from help then map it to toggle the display of line numbers
|
"unmap F1 from help then map it to toggle the display of line numbers
|
||||||
nnoremap <silent><expr> <F1> ':set number!<CR>:echo "Line numbers toggled"<CR>'
|
nnoremap <silent><expr> <F1> ':set number!<CR>:echo "line numbers toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F1> '<Esc>:set number!<CR>v'
|
xnoremap <silent><expr> <F1> '<Esc>:set number!<CR>v'
|
||||||
inoremap <silent><expr> <F1> '<C-O>:set number!<CR>'
|
inoremap <silent><expr> <F1> '<C-O>:set number!<CR>'
|
||||||
|
|
||||||
"toggle the cursor line and column
|
"toggle the cursor line and column
|
||||||
nnoremap <silent><expr> <F2> ':set cursorline! cursorcolumn!<CR>:echo "Cursor crosshair toggled"<CR>'
|
nnoremap <silent><expr> <F2> ':set cursorline! cursorcolumn!<CR>:echo "cursor crosshair toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F2> '<Esc>:set cursorline! cursorcolumn!<CR>v'
|
xnoremap <silent><expr> <F2> '<Esc>:set cursorline! cursorcolumn!<CR>v'
|
||||||
inoremap <silent><expr> <F2> '<C-O>:set cursorline! cursorcolumn!<CR>'
|
inoremap <silent><expr> <F2> '<C-O>:set cursorline! cursorcolumn!<CR>'
|
||||||
|
|
||||||
"toggle line wrapping (and bottom bar if using the gui)
|
"toggle line wrapping (and bottom bar if using the gui)
|
||||||
nnoremap <silent><expr> <F3> ':echo "Line wrapping toggled"<CR>:set wrap!<CR>'
|
nnoremap <silent><expr> <F3> ':echo "line wrapping toggled"<CR>:set wrap!<CR>'
|
||||||
xnoremap <silent><expr> <F3> '<Esc>:set wrap!<CR>v'
|
xnoremap <silent><expr> <F3> '<Esc>:set wrap!<CR>v'
|
||||||
inoremap <silent><expr> <F3> '<C-O>:set wrap!<CR>'
|
inoremap <silent><expr> <F3> '<C-O>:set wrap!<CR>'
|
||||||
|
|
||||||
"toggle all folds
|
"toggle all folds
|
||||||
nnoremap <F4> zi:echo "Code Folding Toggled"<CR>
|
nnoremap <F4> zi:echo "code folding toggled"<CR>
|
||||||
xnoremap <F4> <Esc>ziv
|
xnoremap <F4> <Esc>ziv
|
||||||
inoremap <F4> <C-O>zi
|
inoremap <F4> <C-O>zi
|
||||||
|
|
||||||
"toggle spellcheck
|
"toggle spellcheck
|
||||||
nnoremap <silent><expr> <F5> ':set spell!<CR>:echo "Spell checking toggled"<CR>'
|
nnoremap <silent><expr> <F5> ':set spell!<CR>:echo "spell checking toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F5> '<Esc>:set spell!<CR>v'
|
xnoremap <silent><expr> <F5> '<Esc>:set spell!<CR>v'
|
||||||
inoremap <silent><expr> <F5> '<C-O>:set spell!<CR>'
|
inoremap <silent><expr> <F5> '<C-O>:set spell!<CR>'
|
||||||
|
|
||||||
|
@ -280,19 +282,22 @@
|
||||||
xnoremap <silent><expr> <F6> '<Esc>:SyntasticToggleMode<CR>v'
|
xnoremap <silent><expr> <F6> '<Esc>:SyntasticToggleMode<CR>v'
|
||||||
inoremap <silent><expr> <F6> '<C-O>:SyntasticToggleMode<CR>'
|
inoremap <silent><expr> <F6> '<C-O>:SyntasticToggleMode<CR>'
|
||||||
|
|
||||||
"toggle signify
|
"toggle signify and signify highlight
|
||||||
let g:signify_mapping_toggle = '<F7>'
|
let g:signify_mapping_toggle = '<F7>'
|
||||||
|
nnoremap <silent><expr> <C-F7> ':SignifyToggleHighlight<CR>:echo "toggled version control differences line highlight"<CR>'
|
||||||
|
xnoremap <silent><expr> <C-F7> '<Esc>:SignifyToggleHighlight<CR>v'
|
||||||
|
inoremap <silent><expr> <C-F7> '<C-O>:SignifyToggleHighlight<CR>'
|
||||||
|
|
||||||
"bindings to trigger the tagbar list of tags
|
"bindings to trigger the tagbar list of tags
|
||||||
nnoremap <silent><expr> <F8> ':TagbarToggle<CR>:echo "Code tagbar toggled"<CR>'
|
nnoremap <silent><expr> <F8> ':TagbarToggle<CR>:echo "code tagbar toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F8> '<Esc>:TagbarToggle<CR>v'
|
xnoremap <silent><expr> <F8> '<Esc>:TagbarToggle<CR>v'
|
||||||
inoremap <silent><expr> <F8> '<C-O>:TagbarToggle<CR>'
|
inoremap <silent><expr> <F8> '<C-O>:TagbarToggle<CR>'
|
||||||
|
|
||||||
"bindings to trigger the tagbar list of errors
|
"bindings to trigger the tagbar list of errors
|
||||||
nmap <script> <silent> <C-F8> :call ToggleLocationList()<CR>:echo "Error/Location list toggled"<CR>
|
nmap <script> <silent> <C-F8> :call ToggleLocationList()<CR>:echo "error/location list toggled"<CR>
|
||||||
|
|
||||||
"bindings to trigger the gundo undo history
|
"bindings to trigger the gundo undo history
|
||||||
nnoremap <silent><expr> <F9> ':GundoToggle<CR>:echo "Undo history sidebar toggled"<CR>'
|
nnoremap <silent><expr> <F9> ':GundoToggle<CR>:echo "undo history sidebar toggled"<CR>'
|
||||||
xnoremap <silent><expr> <F9> '<Esc>:GundoToggle<CR>v'
|
xnoremap <silent><expr> <F9> '<Esc>:GundoToggle<CR>v'
|
||||||
inoremap <silent><expr> <F9> '<C-O>:GundoToggle<CR>'
|
inoremap <silent><expr> <F9> '<C-O>:GundoToggle<CR>'
|
||||||
|
|
||||||
|
@ -444,6 +449,7 @@
|
||||||
"FILETYPE SPECIFIC MAPPINGS: {{{
|
"FILETYPE SPECIFIC MAPPINGS: {{{
|
||||||
"vimdiff
|
"vimdiff
|
||||||
autocmd FilterWritePre * if &diff|nnoremap <silent><expr> <Leader><> ':diffu<CR>'|endif
|
autocmd FilterWritePre * if &diff|nnoremap <silent><expr> <Leader><> ':diffu<CR>'|endif
|
||||||
|
autocmd FilterWritePre * if &diff|nnoremap <silent><expr> <Leader>>< ':diffu<CR>'|endif
|
||||||
autocmd FilterWritePre * if &diff|nnoremap <Leader>> dp|endif
|
autocmd FilterWritePre * if &diff|nnoremap <Leader>> dp|endif
|
||||||
autocmd FilterWritePre * if &diff|nnoremap <Leader>< do|endif
|
autocmd FilterWritePre * if &diff|nnoremap <Leader>< do|endif
|
||||||
autocmd FilterWritePre * if &diff|cabbrev q qall|endif
|
autocmd FilterWritePre * if &diff|cabbrev q qall|endif
|
||||||
|
|
Loading…
Reference in a new issue