My dotfiles. Period.

vimrc 3.3KB

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. set pastetoggle=<F4>
  55. nmap <F3> :set relativenumber!<CR>
  56. if has('mouse')
  57. set mouse=a
  58. endif
  59. if !exists(":DiffOrig")
  60. command DiffOrig vert new
  61. \ | set bt=nofile
  62. \ | r ++edit #
  63. \ | 0d_
  64. \ | diffthis
  65. \ | wincmd p
  66. \ | diffthis
  67. endif
  68. " ............ "
  69. " UI - EDITING "
  70. " '''''''''''' "
  71. set autoindent
  72. set backspace=indent,eol,start
  73. set expandtab
  74. set incsearch
  75. set shiftwidth=4
  76. set tabstop=4
  77. inoremap <C-Left> <C-P>
  78. inoremap <C-Right> <C-N>
  79. noremap p p`[
  80. noremap P P`[
  81. nnoremap ,, :b#<CR>
  82. nnoremap ,m :previous<CR>
  83. nnoremap ,. :next<CR>
  84. nnoremap ,l :ls<CR>
  85. if has("autocmd")
  86. filetype plugin indent on
  87. augroup vimrcEx
  88. au!
  89. autocmd FileType text setlocal textwidth=78
  90. autocmd BufNewFile,BufReadPost *.md set filetype=markdown
  91. autocmd BufNewFile,BufReadPost *TESTOUT.log* set filetype=beakerlib
  92. autocmd BufReadPost *
  93. \ if line("'\"") > 1 && line("'\"") <= line("$") |
  94. \ exe "normal! g`\"" |
  95. \ endif
  96. augroup END
  97. else
  98. set autoindent
  99. endif
  100. " .......... "
  101. " UI - LOOKS "
  102. " '''''''''' "
  103. set list
  104. set list listchars=tab:→\ ,trail:·,precedes:←
  105. set ruler
  106. set showcmd
  107. set nowrap
  108. set relativenumber
  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