"^W" wasn't a mistake, it was actually needed to actually run the function when using the map. But keycode syntax is better.
(removed errant ^M character) Tag: Visual edit |
("^W" wasn't a mistake, it was actually needed to actually run the function when using the map. But keycode syntax is better.) |
||
To have a toggle way to ignore / not ignore whitespaces in vimdiff, put this into your .vimrc:
<source lang='vim'>
if &diff
map gs :call IwhiteToggle()<CR>
function! IwhiteToggle()
if &diffopt =~ 'iwhite'
endfunction
endif
</source>
==References==
|