Skip to content

Commit

Permalink
Remap syntax highlighting function
Browse files Browse the repository at this point in the history
The <C-S-P> mapping for the function to show the syntax highlighting
groups for the current cursor position collides with the AUR package
"plotinus-git" (1) which provides a searchable command palette in every
modern GTK+ application. Is uses the commonly known
"Control + Shift + P" key mapping. The used terminal emulator "tilix" (2)
is a GTK3 application so the command bar is available and has a higher
priority as the mapping for the function.

This commit changes the key mapping for the function to use the "K"
key instead of "P".

References:
  (1) https://aur.archlinux.org/packages/plotinus-git
  (2) https://github.com/gnunn1/tilix

GH-36
  • Loading branch information
arcticicestudio committed Oct 30, 2017
1 parent be4d52e commit c823193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowblocks/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ set incsearch
"+ Functions +
"+-----------+
" Shows syntax highlighting groups for the current cursor position
nmap <C-S-P> :call <SID>SynStack()<CR>
nmap <C-S-K> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
Expand Down

0 comments on commit c823193

Please sign in to comment.