Skip to content

Commit

Permalink
Do not remap K if normal mode mapping exists
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
Bruno Sutic committed Jan 24, 2015
1 parent 14b94e0 commit e9b0d6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion ftplugin/tmux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e9b0d6b

Please sign in to comment.