My dotfiles. Period.

vimrc 1.7KB

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