My dotfiles. Period.

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