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