Commits

Panagiotis Mavrogiorgos committed bc1f2e1

Update vim configuration

  • Participants
  • Parent commits f431080

Comments (0)

Files changed (2)

File vim/python-mode.vim

 
     " Skip errors and warnings
     " E.g. "E501,W002", "E2,W" (Skip all Warnings and Errors startswith E2) and etc
-    let g:pymode_lint_ignore = "E501"
+    let g:pymode_lint_ignore = ""
 
     " Select errors and warnings
     " E.g. "E4,W"
 
     " Pylint configuration file
     " If file not found use 'pylintrc' from python-mode plugin directory
-    let g:pymode_lint_config = "$HOME/.pylintrc"
+    let g:pymode_lint_config = "./pylintrc"
 
     " Check code every save
     let g:pymode_lint_write = 0
         " For snippets, neocomplcache provides a framework for snippets.
         " vim-snipmate is better, but it doesn't work so well with Neocomplecache
         "Bundle 'Shougo/neocomplcache-snippets-complete'
-        "Bundle 'garbas/vim-snipmate'
-        "Bundle 'honza/snipmate-snippets'
+        Bundle 'garbas/vim-snipmate'
+        Bundle 'honza/vim-snippets'
+        Bundle 'robhudson/snipmate_for_django'
 
         "Bundle 'ervandew/supertab'
         "Bundle 'scrooloose/syntastic'
 
     " html {
         "Bundle 'html-autoclosetag'
-        "Bundle 'chrisyip/better-css-syntax-for-vim'
+        Bundle 'ChrisYip/Better-CSS-Syntax-for-Vim'
+        Bundle 'sukima/xmledit'
     " }
 
     " latex {
     " }
 
     " Theme {
+        set t_Co=256
+
         " Solarized {
             " General options
-            let g:solarized_termcolors=16       " 16|256 terminal colors
-            let g:solarized_termtrans=1         " 0|1 terminal transparency
+            let g:solarized_termcolors=256      " 16|256 terminal colors
+            let g:solarized_termtrans=0         " 0|1 terminal transparency
             let g:solarized_degrade=0           " 0|1 for testing
             let g:solarized_bold=1              " 0|1 stop solarized from displaying bold
             let g:solarized_underline=1         " 0|1 stop solarized from displaying underline
 " Line Numbers {
     set number                  " Line numbers on
     set relativenumber          " Relative line numbers on
-    "nnoremap <leader>n :setlocal number!<cr>       " Toggle line numbers.
+
+    " Use relative numbers only focus is on the vim window.
+    autocmd FocusLost * :set number
+    autocmd FocusGained * :set relativenumber
+
+    " Use relative numbers only when in normal mode
+    autocmd InsertEnter * :set number
+    autocmd InsertLeave * :set relativenumber
+
 " }
 
 " Windows and Buffers {