My dotfiles. Period.

vimrc 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 t_vb=
  46. noremap <F2> :set list!<CR>
  47. set pastetoggle=<F4>
  48. nmap <F3> :set invnumber<CR>
  49. if has('mouse')
  50. set mouse=a
  51. endif
  52. if !exists(":DiffOrig")
  53. command DiffOrig vert new
  54. \ | set bt=nofile
  55. \ | r ++edit #
  56. \ | 0d_
  57. \ | diffthis
  58. \ | wincmd p
  59. \ | diffthis
  60. endif
  61. " ............ "
  62. " UI - EDITING "
  63. " '''''''''''' "
  64. set autoindent
  65. set backspace=indent,eol,start
  66. set expandtab
  67. set incsearch
  68. set shiftwidth=4
  69. set tabstop=4
  70. inoremap <C-Left> <C-P>
  71. inoremap <C-Right> <C-N>
  72. noremap p p`[
  73. noremap P P`[
  74. if has("autocmd")
  75. filetype plugin indent on
  76. augroup vimrcEx
  77. au!
  78. autocmd FileType text setlocal textwidth=78
  79. autocmd BufNewFile,BufReadPost *.md set filetype=markdown
  80. autocmd BufNewFile,BufReadPost *TESTOUT.log* set filetype=beakerlib
  81. autocmd BufReadPost *
  82. \ if line("'\"") > 1 && line("'\"") <= line("$") |
  83. \ exe "normal! g`\"" |
  84. \ endif
  85. augroup END
  86. else
  87. set autoindent
  88. endif
  89. " .......... "
  90. " UI - LOOKS "
  91. " '''''''''' "
  92. set list
  93. set list listchars=tab:→\ ,trail:·,precedes:←
  94. set ruler
  95. set showcmd
  96. set nowrap
  97. if &t_Co > 2 || has("gui_running")
  98. syntax on
  99. set hlsearch
  100. endif
  101. colorscheme delek
  102. " colorscheme 1989
  103. hi Folded ctermbg=NONE
  104. "set gfn=Droid\ Sans\ Mono\ 9
  105. set number
  106. highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
  107. highlight MatchParen cterm=bold ctermfg=NONE ctermbg=black
  108. highlight Search term=NONE cterm=NONE ctermfg=NONE ctermbg=235 "DarkGreen
  109. if &term =~ "xterm\\|rxvt"
  110. silent !echo -ne "\033]12;gray75\007"
  111. let &t_SI = "\<Esc>]12;gray25\x7"
  112. let &t_EI = "\<Esc>]12;gray75\x7"
  113. autocmd VimLeave * let &t_me="\<Esc>]12;white\x7"
  114. endif