New answers tagged macvim
1
vote
Accepted
Change settings when using vimdiff
The diff is a window option.
More information with :help 'diff'
I would do:
function! Set_Options_for_Diff_Mode(diff)
" Highlight the diff, not the code
if a:diff
set ft=
setlocal ...
Top 50 recent answers are included
Related Tags
macvim × 204vimrc × 35
macos × 27
gvim × 20
key-bindings × 18
terminal × 15
vimscript × 14
syntax-highlighting × 9
colorscheme × 7
tabbed-user-interface × 7
neovim × 6
cut-copy-paste × 6
vim-windows × 6
plugin-you-complete-me × 6
font × 6
iterm2 × 6
scrolling × 5
command-line × 4
plugin-ultisnips × 4
printing × 4
indentation × 3
autocompletion × 3
cursor-movement × 3
external-command × 3
netrw × 3