Permalink
Browse files

Do not remap `K` if normal mode mapping exists

Fixes #1
  • Loading branch information...
1 parent 14b94e0 commit e9b0d6b687759d963047680a7e62616884d54feb @bruno- bruno- committed Jan 24, 2015
Showing with 4 additions and 1 deletion.
  1. +1 −0 CHANGELOG.md
  2. +3 −1 ftplugin/tmux.vim
View
@@ -1,6 +1,7 @@
# Changelog
### master
+- do not remap `K` if normal mode mapping is already defined
### v3.0.0, 2014-11-16
- add a minor indentation rule for multi-line strings.
View
@@ -9,7 +9,9 @@ set cpo&vim
setlocal comments=:#
setlocal commentstring=#\ %s
-nnoremap <silent><buffer> K :call tmux#man()<CR>
+if maparg('K','n') ==# ''
+ nnoremap <silent><buffer> K :call tmux#man()<CR>
+endif
nnoremap <silent> <Plug>TmuxExec :<C-U>set opfunc=tmux#filterop<CR>g@
xnoremap <silent> <Plug>TmuxExec :<C-U>call tmux#filterop(visualmode())<CR>

0 comments on commit e9b0d6b

Please sign in to comment.