Backup all teh dots!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.vimrc 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. " ██
  2. " ░░
  3. " ██ ██ ██ ██████████ ██████ █████
  4. " ░██ ░██░██░░██░░██░░██░░██░░█ ██░░░██
  5. " ░░██ ░██ ░██ ░██ ░██ ░██ ░██ ░ ░██ ░░
  6. " ░░████ ░██ ░██ ░██ ░██ ░██ ░██ ██
  7. " ░░██ ░██ ███ ░██ ░██░███ ░░█████
  8. " ░░ ░░ ░░░ ░░ ░░ ░░░ ░░░░░
  9. version 6.0
  10. set nocompatible
  11. filetype off
  12. if &cp | set nocp | endif
  13. let s:cpo_save=&cpo
  14. set cpo&vim
  15. map! <S-Insert> <MiddleMouse>
  16. nmap gx <Plug>NetrwBrowseX
  17. nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cfile>"),0)
  18. map <S-Insert> <MiddleMouse>
  19. let &cpo=s:cpo_save
  20. unlet s:cpo_save
  21. set viminfo=
  22. set nobackup
  23. set nowritebackup
  24. set undofile
  25. set undodir=~/.vim/undo
  26. set noswapfile
  27. set nowrap
  28. set background=dark
  29. set backspace=indent,eol,start
  30. set fileencodings=ucs-bom,utf-8,default,latin1
  31. set completeopt=longest,menuone
  32. set number
  33. set cursorline
  34. set guioptions=aegiLtm
  35. set helplang=en
  36. set mouse=a
  37. set ruler
  38. set termencoding=utf-8
  39. set window=90
  40. set shortmess=filnxtToO
  41. set shortmess+=I
  42. set t_Co=256
  43. set tabstop=4
  44. set shiftwidth=4
  45. colors noctu
  46. syntax on
  47. " NERDTree settings and autohide/close
  48. autocmd VimEnter * NERDTree
  49. autocmd VimEnter * NERDTreeToggle
  50. autocmd VimEnter * wincmd p
  51. let g:NERDTreeWinSize=14
  52. let g:NERDTreeMinimalUI=1
  53. let g:NERDTreeDirArrows=0
  54. " let g:NERDTreeShowHidden=1
  55. " vim: set ft=vim :
  56. function! NERDTreeQuit()
  57. redir => buffersoutput
  58. silent buffers
  59. redir END
  60. " 1BufNo 2Mods. 3File 4LineNo
  61. let pattern = '^\s*\(\d\+\)\(.....\) "\(.*\)"\s\+line \(\d\+\)$'
  62. let windowfound = 0
  63. for bline in split(buffersoutput, "\n")
  64. let m = matchlist(bline, pattern)
  65. if (len(m) > 0)
  66. if (m[2] =~ '..a..')
  67. let windowfound = 1
  68. endif
  69. endif
  70. endfor
  71. if (!windowfound)
  72. quitall
  73. endif
  74. endfunction
  75. autocmd WinEnter * call NERDTreeQuit()