From 0fc53f16776e1d567f07b323af1d721250f31932 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 25 Aug 2014 00:43:41 -0400 Subject: [PATCH] autotags is enabled by default again, but with much better config --- README.md | 2 +- update | 12 ++++++------ vim/config/plugins.vim | 9 ++++----- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3eb9f2a..66b0d3c 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ As usual, to have your system use `vimpager` in place of `less`, you'll need to * `g:autostartfiler`: **1** = Start the filer file manager when vim is run and the buffer is empty | **0** = Do nothing when vim is run and the buffer is empty (_default_: **1**) * `g:autostartchecker`: **1** = Check syntax once an appropriate file is loaded | **0** = Check syntax only after syntax checking is toggled on (_default_: **0**) * `g:autostarttagbar`: **1** = Have the tagbar load automatically when a compatible format is run | **0** = The tagbar will stay hidden until triggered on demand with its toggle (_default_: **0**) - * `g:disableautotags`: **1** = Prevent tags from being automatically generated and highlighted | **0** = Automatically generate and highlight tags (_default_: **1**) + * `g:disableautotags`: **1** = Prevent tags from being automatically generated and highlighted | **0** = Automatically generate and highlight tags (_default_: **0**) * `g:disablelinebreaks`: **1** = Override filetype plugins so linebreaks never occur | **0** = Linebreaks are disabled by default, but filetype plugins can override this setting (_default_: **0**) * `g:powerlinefonts`: **1** = Render the statusline using characters available with powerline-patched fonts | **0** = Render the statusbar with less attractive but more compatible characters available in all fonts (_default_: **0**) * **Custom Settings**: Settings with priority over those set by darkcloud-vimconfig can be added to a file named _vimrc.user_, located in _darkcloud-vimconfig/vim/_ or any of the folders in the runtimepath. diff --git a/update b/update index fe6dc6d..916f698 100755 --- a/update +++ b/update @@ -123,12 +123,12 @@ if [ ! -e vim/vimrc.user ]; then echo -n -e "\n${HEADINGCOLOUR} >> Creating User Config File:${RESETCOLOUR}" PROCESS_STATUS=$(touch vim/vimrc.user 2>&1) if [ $? = 0 ]; then - echo -e '"Autostart Filer in empty buffers: (*1:filer loads in new empty buffers | 0:filer must be triggered)\n"let g:autostartfiler=0\n' >> vim/vimrc.user - echo -e '"Autocheck syntax checking: (1:start toggled on | *0:start toggled off)\n"let g:autostartchecker=1\n' >> vim/vimrc.user - echo -e '"Autoload Tagbar: (1:start open | *0:start closed)\n"let g:autostarttagbar=1\n' >> vim/vimrc.user - echo -e '"Disable automatic tag generation and highlighting: (*1:force disabled tag generation and highlighting | 0:enable automatic tag generation and highlighting)\n"let g:disableautotags=1\n' >> vim/vimrc.user - echo -e '"Disable automatic linebreaking: (1:force disabled globally | *0:let the filetype decide)\n"let g:disablelinebreaks=1\n' >> vim/vimrc.user - echo -e '"Enable Powerline fonts: (1:expect powerline font | *0:expect regular font)\n"let g:powerlinefonts=1 "(set powerline font for gvim and terminal when enabled)\n' >> vim/vimrc.user + echo -e '"Autostart Filer in empty buffers: (*1:filer loads in new empty buffers | 0:filer must be triggered)\n"let g:autostartfiler=1\n' >> vim/vimrc.user + echo -e '"Autocheck syntax checking: (1:start toggled on | *0:start toggled off)\n"let g:autostartchecker=0\n' >> vim/vimrc.user + echo -e '"Autoload Tagbar: (1:start open | *0:start closed)\n"let g:autostarttagbar=0\n' >> vim/vimrc.user + echo -e '"Disable automatic tag generation and highlighting: (1:force disabled tag generation and highlighting | *0:enable automatic tag generation and highlighting)\n"let g:disableautotags=0\n' >> vim/vimrc.user + echo -e '"Disable automatic linebreaking: (1:force disabled globally | *0:let the filetype decide)\n"let g:disablelinebreaks=0\n' >> vim/vimrc.user + echo -e '"Enable Powerline fonts: (1:expect powerline font | *0:expect regular font)\n"let g:powerlinefonts=0 "(set powerline font for gvim and terminal when enabled)\n' >> vim/vimrc.user echo -e '"GVim font selection: (Escaping spaces and use powerline if appropriate)\nset guifont=Monospace\ 12' >> vim/vimrc.user echo -e "${SUCCESSCOLOUR} SUCCESS! ${RESETCOLOUR}" else diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index f6e4ab7..21dfd3f 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -10,7 +10,8 @@ "============================================================" "INITIALIZE PLUGINS: {{{ - "create missing plugin user config files + "create missing plugin config files and directories + if !isdirectory(glob("~/.vim/tags_by_filetype"))|call mkdir(glob("~/.vim/tags_by_filetype"),'p')|endif if !filereadable(glob("~/.vim/tags"))|new|silent e ~/.vim/tags|silent w|q|endif if !filereadable(glob("~/.vim/snippets.json"))|new|silent e ~/.vim/snippets.json|silent w|q|endif if !filereadable(glob("~/.vim/filetypes.vim"))|new|silent e ~/.vim/filetypes.vim|silent w|q|endif @@ -30,13 +31,11 @@ "EASYTAGS: {{{ let g:easytags_file='~/.vim/tags' let g:easytags_suppress_ctags_warning=1 - let g:easytags_autorecurse=1 - let g:easytags_resolve_links=1 - let g:easytags_dynamic_files=1 + let g:easytags_by_filetype='~/.vim/tags_by_filetype' "prevent automatically generating the tagfile and syntax highlighting tags (default: 0) if !exists("g:disableautotags") - let g:disableautotags=1 + let g:disableautotags=0 endif if (g:disableautotags == 1) let g:easytags_auto_update=0