My dotfiles. Period.

vimrc 3.2KB

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