My dotfiles. Period.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. nmap <F6> :SyntasticCheck<CR>
  10. set statusline+=%#warningmsg#
  11. set statusline+=%{SyntasticStatuslineFlag()}
  12. set statusline+=%*
  13. let g:syntastic_always_populate_loc_list = 1
  14. let g:syntastic_auto_loc_list = 0
  15. let g:syntastic_check_on_open = 0
  16. let g:syntastic_check_on_wq = 0
  17. let g:syntastic_mode_map = {
  18. \ "mode": "active",
  19. \ "active_filetypes": ["bash"],
  20. \ "passive_filetypes": ["python"] }
  21. let g:syntastic_check_on_open = 1
  22. let g:syntastic_lua_checkers = ["luac", "luacheck"]
  23. let g:syntastic_lua_luacheck_args = "--no-unused-args"
  24. let g:gitgutter_sign_added = '✚'
  25. let g:gitgutter_sign_modified = '❱'
  26. let g:gitgutter_sign_removed = '❌'
  27. let g:gitgutter_sign_removed_first_line = '^'
  28. let g:gitgutter_sign_modified_removed = '❰'
  29. let g:airline_theme = 'zenburn'
  30. " ..................... "
  31. " PROGRAM / ENVIRONMENT "
  32. " ''''''''''''''''''''' "
  33. set clipboard=unnamed
  34. set encoding=utf-8
  35. set fileencodings=ucs-bom,utf-8,cp1250,latin1
  36. set history=500
  37. " swap settings "
  38. if isdirectory($HOME . '/.local/share/vim') == 0
  39. :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
  40. endif
  41. set directory=./.vim-swap//
  42. set directory+=~/.local/share/vim/swap//
  43. set directory+=~/tmp//
  44. set directory+=.
  45. " ............ "
  46. " UI - GENERAL "
  47. " '''''''''''' "
  48. set updatetime=100
  49. set t_vb=
  50. noremap <F2> :set list!<CR>
  51. set pastetoggle=<F4>
  52. nmap <F3> :set invnumber<CR>
  53. if has('mouse')
  54. set mouse=a
  55. endif
  56. if !exists(":DiffOrig")
  57. command DiffOrig vert new
  58. \ | set bt=nofile
  59. \ | r ++edit #
  60. \ | 0d_
  61. \ | diffthis
  62. \ | wincmd p
  63. \ | diffthis
  64. endif
  65. " ............ "
  66. " UI - EDITING "
  67. " '''''''''''' "
  68. set autoindent
  69. set backspace=indent,eol,start
  70. set expandtab
  71. set incsearch
  72. set shiftwidth=4
  73. set tabstop=4
  74. inoremap <C-Left> <C-P>
  75. inoremap <C-Right> <C-N>
  76. noremap p p`[
  77. noremap P P`[
  78. if has("autocmd")
  79. filetype plugin indent on
  80. augroup vimrcEx
  81. au!
  82. autocmd FileType text setlocal textwidth=78
  83. autocmd BufNewFile,BufReadPost *.md set filetype=markdown
  84. autocmd BufNewFile,BufReadPost *TESTOUT.log* set filetype=beakerlib
  85. autocmd BufReadPost *
  86. \ if line("'\"") > 1 && line("'\"") <= line("$") |
  87. \ exe "normal! g`\"" |
  88. \ endif
  89. augroup END
  90. else
  91. set autoindent
  92. endif
  93. " .......... "
  94. " UI - LOOKS "
  95. " '''''''''' "
  96. set list
  97. set list listchars=tab:→\ ,trail:·,precedes:←
  98. set ruler
  99. set showcmd
  100. set nowrap
  101. if &t_Co > 2 || has("gui_running")
  102. syntax on
  103. set hlsearch
  104. endif
  105. colorscheme hipster
  106. " colorscheme 1989
  107. hi Folded ctermbg=NONE
  108. "set gfn=Droid\ Sans\ Mono\ 9
  109. set number
  110. highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
  111. highlight MatchParen cterm=bold ctermfg=NONE ctermbg=black
  112. highlight Search term=NONE cterm=NONE ctermfg=NONE ctermbg=235 "DarkGreen
  113. if &term =~ "xterm\\|rxvt"
  114. silent !echo -ne "\033]12;gray75\007"
  115. let &t_SI = "\<Esc>]12;gray25\x7"
  116. let &t_EI = "\<Esc>]12;gray75\x7"
  117. autocmd VimLeave * let &t_me="\<Esc>]12;white\x7"
  118. endif