diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2014-03-11 00:36:09 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2014-03-11 00:36:09 +0100 |
commit | 94f72a68c3dccade13ec7203a284620040f930f1 (patch) | |
tree | a19a08381285c40c59f882b211039514ea2e69d4 /ftplugin/csv.vim | |
parent | 9b3b092d15503ed70ea4bf60c4e1345b196c3677 (diff) | |
download | vim-polyglot-1.5.3.tar.gz vim-polyglot-1.5.3.zip |
Updatev1.5.3
Diffstat (limited to 'ftplugin/csv.vim')
-rw-r--r-- | ftplugin/csv.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ftplugin/csv.vim b/ftplugin/csv.vim index 82ef430e..d824c154 100644 --- a/ftplugin/csv.vim +++ b/ftplugin/csv.vim @@ -2381,11 +2381,12 @@ fu! <sid>SubstituteInColumn(command, line1, line2) range "{{{3 endfu fu! <sid>ColumnMode() "{{{3 - if mode() =~# 'R' + let mode = mode() + if mode =~# 'R' " (virtual) Replace mode let new_line = (line('.') == line('$') || - \ (synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name") !~# "comment")) - return "\<ESC>". (new_line ? "o" : "JE".mode()) + \ (synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name") =~? "comment")) + return "\<ESC>g`[". (new_line ? "o" : "J".mode) else return "\<CR>" endif |