My dotfiles. Period.

vimrc 2.9KB

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