My dotfiles. Period.

vimrc 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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 wrap!<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. nnoremap ,w :set wrap!<CR>
  69. if has("autocmd")
  70. filetype plugin indent on
  71. augroup vimrcEx
  72. au!
  73. autocmd FileType text setlocal textwidth=78
  74. autocmd BufNewFile,BufReadPost *.md set filetype=markdown
  75. autocmd BufNewFile,BufReadPost *TESTOUT.log* set filetype=beakerlib
  76. autocmd BufReadPost *
  77. \ if line("'\"") > 1 && line("'\"") <= line("$") |
  78. \ exe "normal! g`\"" |
  79. \ endif
  80. augroup END
  81. else
  82. set autoindent
  83. endif
  84. " .......... "
  85. " UI - LOOKS "
  86. " '''''''''' "
  87. set list
  88. set list listchars=tab:→\ ,trail:·,precedes:←
  89. set ruler
  90. set showcmd
  91. set nowrap
  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. highlight clear SignColumn
  105. set signcolumn=number
  106. set laststatus=2
  107. set noshowmode
  108. let g:lightline = {
  109. \ 'colorscheme': 'wombat',
  110. \ }
  111. if &term =~ "xterm\\|rxvt"
  112. silent !echo -ne "\033]12;gray75\007"
  113. let &t_SI = "\<Esc>]12;gray25\x7"
  114. let &t_EI = "\<Esc>]12;gray75\x7"
  115. autocmd VimLeave * let &t_me="\<Esc>]12;white\x7"
  116. endif
  117. " ................................................ "
  118. " How to Do 90% of What Plugins Do (With Just Vim) "
  119. " '''''''''''''''''''''''''''''''''''''''''''''''' "
  120. set nocompatible
  121. set path+=**
  122. set wildmenu