My dotfiles. Period.

vimrc 3.3KB

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