From 94f72a68c3dccade13ec7203a284620040f930f1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 11 Mar 2014 00:36:09 +0100 Subject: Update --- ftplugin/csv.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ftplugin/csv.vim') 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! SubstituteInColumn(command, line1, line2) range "{{{3 endfu fu! 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 "\". (new_line ? "o" : "JE".mode()) + \ (synIDattr(synIDtrans(synID(line("."), col("."), 1)), "name") =~? "comment")) + return "\g`[". (new_line ? "o" : "J".mode) else return "\" endif -- cgit v1.2.3