Tanel Liiv committed f887a21

Minor tweaks here and there

Comments (0)

Files changed (1)

 " Zoom windows with <c-w>+o
 Bundle 'vim-scripts/ZoomWin.git'
 " Syntastic epic syntax checker on save(?) <Makes vim slow :(>
-"Bundle 'scrooloose/syntastic.git'
+Bundle 'scrooloose/syntastic.git'
 " TAB completion to insert mode autocompletes
 Bundle 'ervandew/supertab.git'
 " Cool HTML/CSS constructor - not needed much :(
 let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
 " Syntastic checks syntax with flake8/pyflakes/pylint
-let g:syntastic_python_checker = 'flake8'
+let g:syntastic_python_checker = 'pyflakes'
 " flake8 - Warn when complexity over 12 in flakes, ignore longline warnings on PEP8
-let g:syntastic_python_checker_args = "--max-complexity 13 --ignore=E501"
+let g:syntastic_python_checker_args = "--max-complexity 10 --ignore=E501"
 " Check files on open and save
 let g:syntastic_check_on_open=1
 "set hidden                        " Some kind of hidden mode, lustyexplorer wanted it
 " }}}
 " Folding stuffs {{{
 if has ('folding')
 " leader key
 :let mapleader = ","
-" FuzzyFinder
-map <Leader>f :FufFile<cr>
-map <Leader>b :FufBuffer<cr>
 " diff
 nnoremap <Leader>u :diffupdate<cr>
 nnoremap <Leader>g :diffget<cr>
 nmap <up>    :3wincmd +<cr>
 nmap <down>  :3wincmd -<cr>
+" Window swapping
 nmap <silent> <leader>mw :call MarkWindowSwap()<CR>
 nmap <silent> <leader>pw :call DoWindowSwap()<CR>
   " change how vim behaves when composing emails
   au BufNewFile,BufRead ~/.mutt/temp/mutt* set ft=mail | set textwidth=72 | set spell | set nohls
   au BufNewFile,BufRead ~/.mutt/temp/mutt* nmap  <F1>  gqap
   au BufNewFile,BufRead ~/.mutt/temp/mutt* nmap  <F2>  gqqj
   au BufNewFile,BufRead ~/.mutt/temp/mutt* nmap  <F3>  kgqj
   au BufNewFile,BufRead ~/.mutt/temp/mutt* map!  <F3>  <ESC>kgqji
   " set comment characters for common languages
-  au FileType rst                              set nolist
   au FileType python,sh,bash,zsh,ruby,perl     let StartComment="#"  | let EndComment=""
   au FileType cpp,php,c,javascript             let StartComment="//" | let EndComment=""
   au FileType xdefaults    let StartComment="!"  | let EndComment=""
+  " Don't show whitespace in rEST?
+  au FileType rst                              set nolist
   " file type specific commands
   au FileType c      set formatoptions+=ro
   au FileType make   set noexpandtab shiftwidth=8
   au FileType cpp    syn match matchName /\(#define\)\@<= .*/
   au FileType text   setlocal textwidth=72
   au FileType vim    set foldmethod=marker  " Fold .vimrc on markers
+  " Show Tagbar for Python, Javascript
+  au FileType python,javascript  TagbarToggle
  " }}}
 " Functions {{{