My dotfiles. Period.

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