" And restore it after all other options were reset.
if has('eval')
let &runtimepath = s:save_runtimepath
+ unlet s:save_runtimepath
endif
" Make sure Vim (and not Vi) settings are used.
" Disable Apple style movements in MacVim.
if has('gui_macvim') && has('eval')
- let macvim_skip_cmd_opt_movement = 1
+ let g:macvim_skip_cmd_opt_movement = 1
endif
" In case 'hlsearch' is used disable it with <C-L>. Thanks to frogonwheels and
" Settings for the NERD commenter.
" Don't create any mappings I don't want to use.
if has('eval')
- let NERDCreateDefaultMappings = 0
+ let g:NERDCreateDefaultMappings = 0
endif
" Map toggle comment.
map <Leader><Leader> <Plug>NERDCommenterToggle