From 39b01999a1a8163e61248534a810e89b6d13f7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Thu, 6 Sep 2012 00:54:41 +0200 Subject: vim: toggling --- .vimrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index f784aff..1dea094 100644 --- a/.vimrc +++ b/.vimrc @@ -50,6 +50,7 @@ cnoremap " ======================================================= " Some maps +nmap t :ToggleWord map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . nmap :Tlist nmap :TlistUpdate @@ -67,6 +68,16 @@ map Y y$ " PLUGINS AND LANGUAGES " ======================================================= +" Word toggling +let g:toggle_words_dict = { + \ 'python': [ + \ ['if', 'elif', 'else'] + \ ], + \ '*': [ + \ ['enable', 'disable'], + \ ['enabled', 'disabled'] + \ ]} + " Stuff for the TagList-Plugin let Tlist_Sort_Type = "name" let Tlist_File_Fold_Auto_Close = 1 @@ -82,7 +93,6 @@ let g:autotagCtagsCmd="ctags --c++-kinds=+p --fields=+iaS --extra=+q" let g:bugsummary_browser="firefox %s" " for toggling in python -let g:toggle_words_dict = {'python': [['if', 'elif', 'else'], ['True','False']]} let python_highlight_numbers = 1 let python_highlight_space_errors = 1 -- cgit v1.2.3