My dotfiles. Period.

vimrc 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. " ..................... "
  11. " PROGRAM / ENVIRONMENT "
  12. " ''''''''''''''''''''' "
  13. set clipboard=unnamed
  14. set encoding=utf-8
  15. set fileencodings=ucs-bom,utf-8,cp1250,latin1
  16. set history=500
  17. if isdirectory($HOME . '/.local/share/vim') == 0
  18. :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
  19. endif
  20. set directory=./.vim-swap//
  21. set directory+=~/.local/share/vim/swap//
  22. set directory+=~/tmp//
  23. set directory+=.
  24. " ............ "
  25. " UI - GENERAL "
  26. " '''''''''''' "
  27. noremap <F2> :set list!<CR>
  28. set pastetoggle=<F4>
  29. nmap <F3> :set invnumber<CR>
  30. if has('mouse')
  31. set mouse=a
  32. endif
  33. if !exists(":DiffOrig")
  34. command DiffOrig vert new
  35. \ | set bt=nofile
  36. \ | r ++edit #
  37. \ | 0d_
  38. \ | diffthis
  39. \ | wincmd p
  40. \ | diffthis
  41. endif
  42. " ............ "
  43. " UI - EDITING "
  44. " '''''''''''' "
  45. set autoindent
  46. set backspace=indent,eol,start
  47. set expandtab
  48. set incsearch
  49. set shiftwidth=4
  50. set tabstop=4
  51. inoremap <C-Left> <C-P>
  52. inoremap <C-Right> <C-N>
  53. if has("autocmd")
  54. filetype plugin indent on
  55. augroup vimrcEx
  56. au!
  57. autocmd FileType text setlocal textwidth=78
  58. autocmd BufNewFile,BufReadPost *.md set filetype=markdown
  59. autocmd BufReadPost *
  60. \ if line("'\"") > 1 && line("'\"") <= line("$") |
  61. \ exe "normal! g`\"" |
  62. \ endif
  63. augroup END
  64. else
  65. set autoindent
  66. endif
  67. " .......... "
  68. " UI - LOOKS "
  69. " '''''''''' "
  70. set list
  71. set list listchars=tab:→\ ,trail:·,precedes:←
  72. set ruler
  73. set showcmd
  74. set nowrap
  75. if &t_Co > 2 || has("gui_running")
  76. syntax on
  77. set hlsearch
  78. endif
  79. colorscheme pablo
  80. hi Folded ctermbg=NONE
  81. "set gfn=Droid\ Sans\ Mono\ 9
  82. set number
  83. highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
  84. highlight MatchParen cterm=bold ctermfg=NONE ctermbg=black
  85. if &term =~ "xterm\\|rxvt"
  86. silent !echo -ne "\033]12;gray50\007"
  87. let &t_SI = "\<Esc>]12;gray75\x7"
  88. let &t_EI = "\<Esc>]12;gray50\x7"
  89. autocmd VimLeave * let &t_me="\<Esc>]12;white\x7"
  90. endif