Skip to content

Commit efe60c9

Browse files
Fix the slowness experienced with ,a & ,t.
1 parent 1f4c757 commit efe60c9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

vimrc.local

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,19 @@ if (&t_Co == 256 || has('gui_running'))
1111
colorscheme desert
1212
endif
1313
endif
14+
15+
" Disambiguate ,a & ,t from the Align plugin, making them fast again.
16+
"
17+
" This section is here to prevent AlignMaps from adding a bunch of mappings
18+
" that interfere with the very-common ,a and ,t mappings. This will get run
19+
" at every startup to remove the AlignMaps for the *next* vim startup.
20+
"
21+
" If you do want the AlignMaps mappings, remove this section, remove
22+
" ~/.vim/bundle/Align, and re-run rake in maximum-awesome.
23+
function! s:RemoveConflictingAlignMaps()
24+
if exists("g:loaded_AlignMapsPlugin")
25+
AlignMapsClean
26+
endif
27+
endfunction
28+
command! -nargs=0 RemoveConflictingAlignMaps call s:RemoveConflictingAlignMaps()
29+
silent! autocmd VimEnter * RemoveConflictingAlignMaps

0 commit comments

Comments
 (0)