My dotfiles. Period.

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