My dotfiles. Period.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. " ....... "
  2. " PLUGINS "
  3. " ''''''' "
  4. execute pathogen#infect()
  5. let g:local_vimrc=".vimrc_local.vim"
  6. let python_highlight_all = 1
  7. let g:vim_markdown_folding_disabled=1
  8. " ..................... "
  9. " PROGRAM / ENVIRONMENT "
  10. " ''''''''''''''''''''' "
  11. set encoding=utf-8
  12. set fileencodings=ucs-bom,utf-8,cp1250,latin1
  13. set history=500
  14. if isdirectory($HOME . '/.local/share/vim') == 0
  15. :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
  16. endif
  17. set directory=./.vim-swap//
  18. set directory+=~/.local/share/vim/swap//
  19. set directory+=~/tmp//
  20. set directory+=.
  21. " ............ "
  22. " UI - GENERAL "
  23. " '''''''''''' "
  24. noremap <F2> :set list!<CR>
  25. set pastetoggle=<F4>
  26. nmap <F3> :set invnumber<CR>
  27. if has('mouse')
  28. set mouse=a
  29. endif
  30. if !exists(":DiffOrig")
  31. command DiffOrig vert new
  32. \ | set bt=nofile
  33. \ | r ++edit #
  34. \ | 0d_
  35. \ | diffthis
  36. \ | wincmd p
  37. \ | diffthis
  38. endif
  39. " ............ "
  40. " UI - EDITING "
  41. " '''''''''''' "
  42. set autoindent
  43. set backspace=indent,eol,start
  44. set expandtab
  45. set incsearch
  46. set shiftwidth=4
  47. set tabstop=4
  48. if has("autocmd")
  49. filetype plugin indent on
  50. augroup vimrcEx
  51. au!
  52. autocmd FileType text setlocal textwidth=78
  53. autocmd BufReadPost *
  54. \ if line("'\"") > 1 && line("'\"") <= line("$") |
  55. \ exe "normal! g`\"" |
  56. \ endif
  57. augroup END
  58. else
  59. set autoindent
  60. endif
  61. " .......... "
  62. " UI - LOOKS "
  63. " '''''''''' "
  64. set list
  65. set list listchars=tab:→\ ,trail:·,precedes:←
  66. set ruler
  67. set showcmd
  68. set nowrap
  69. if &t_Co > 2 || has("gui_running")
  70. syntax on
  71. set hlsearch
  72. endif
  73. colorscheme pablo
  74. "set gfn=Droid\ Sans\ Mono\ 9
  75. set number
  76. highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE