From dcfbdd871b2c6f9deeaae34ead5c0b0df792a0d7 Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Sun, 15 Apr 2018 13:33:36 +0200 Subject: [PATCH] fixed a serious commenter bug --- plugin/comment.vim | 2 +- plugin/settings.vim | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/comment.vim b/plugin/comment.vim index 0ad1398..e9c20c8 100644 --- a/plugin/comment.vim +++ b/plugin/comment.vim @@ -21,7 +21,7 @@ let s:block_map = { function! MyCommenter(uncomment) range let comment = get(s:comment_map, &ft, '') if exists('g:custom_comment_map') - let comment = get(g:custom_comment_map, &ft, '') + let comment = get(g:custom_comment_map, &ft, comment) endif if !len(comment) return diff --git a/plugin/settings.vim b/plugin/settings.vim index 4aff954..5c6fc9e 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -106,7 +106,9 @@ augroup END " Mappings " {{{ let mapleader = "," +nnoremap , let maplocalleader = " " +nnoremap nnoremap q nnoremap Q nnoremap qn :nohl @@ -143,10 +145,12 @@ nnoremap so :syntax off nnoremap fl mf081lFr`f:delm f +nnoremap v vnoremap " `>a"` vnoremap "+y nnoremap "+p inoremap "+p +vnoremap x"+P " }}} " Mappings for Plugins