summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2012-09-06 00:54:41 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2012-09-06 00:54:42 +0200
commit39b01999a1a8163e61248534a810e89b6d13f7d7 (patch)
treee8bff09ab071a5c98decccdab82b91ffd8c2d2dc /.vimrc
parent3c7a495a0469190a677e8995f0f1a2d6d2addab2 (diff)
downloaddotfiles-39b01999a1a8163e61248534a810e89b6d13f7d7.tar.gz
dotfiles-39b01999a1a8163e61248534a810e89b6d13f7d7.tar.bz2
dotfiles-39b01999a1a8163e61248534a810e89b6d13f7d7.zip
vim: toggling
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc12
1 files changed, 11 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index f784aff..1dea094 100644
--- a/.vimrc
+++ b/.vimrc
@@ -50,6 +50,7 @@ cnoremap <Right> <Space><BS><Right>
" =======================================================
" Some maps
+nmap <Leader>t :ToggleWord<CR>
map <C-F10> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
nmap <silent> <F12> :Tlist<CR>
nmap <silent> <F11> :TlistUpdate<CR>
@@ -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