Guest User

Untitled

a guest
Jan 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. set nocompatible " be iMproved
  2. filetype off " required!
  3.  
  4. set rtp+=~/.vim/bundle/vundle/
  5. call vundle#rc()
  6.  
  7. " let Vundle manage Vundle
  8. " required!
  9. Bundle 'gmarik/vundle'
  10.  
  11. " My Bundles here:
  12. "
  13. " original repos on github
  14. Bundle 'tpope/vim-rails'
  15. Bundle 'corntrace/bufexplorer'
  16. " vim-scripts repos
  17. " Bundle 'NERD_Tree-and-ack'
  18. Bundle 'The-NERD-tree'
  19. Bundle 'The-NERD-Commenter'
  20. Bundle 'ack.vim'
  21. Bundle 'Tabular'
  22. Bundle 'ruby-matchit'
  23.  
  24. Bundle 'minibufexpl.vim'
  25. Bundle 'SuperTab'
  26. " non github repos
  27. Bundle 'git://git.wincent.com/command-t.git'
  28. " ...
  29.  
  30. filetype plugin indent on " required!
  31. "
  32. " Brief help
  33. " :BundleList - list configured bundles
  34. " :BundleInstall(!) - install(update) bundles
  35. " :BundleSearch(!) foo - search(or refresh cache first) for foo
  36. " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
  37. "
  38. " see :h vundle for more details or wiki for FAQ
  39. " NOTE: comments after Bundle command are not allowed..
  40.  
  41. let mapleader = ","
  42.  
  43. set t_Co=256
  44.  
  45. set smartcase
  46. set grepprg=ack\ -H\ --nocolor\ --nogroup
  47. set grepformat=%f:%l:%m
  48.  
  49. au BufNewFile,BufRead *.thor setfiletype ruby
  50. au BufNewFile,BufRead Gemfile setfiletype ruby
  51. au BufNewFile,BufRead *utotest set filetype=ruby
  52. au BufNewFile,BufRead *.api set filetype=ruby
  53.  
  54. let $ACK_OPTIONS = "--type-set=haml=.haml --type-set=coffee=.coffee --type-set=sass=.sass"
  55. command! -nargs=* -complete=file Ack call Ack(<q-args>)
  56. " ,F to startup an ack search
  57. map <leader>F :Ack<space>
  58.  
  59. " Command T settings
  60. let g:CommandTMaxHeight=10
  61.  
  62. " NERD snippets
  63. "let g:NERDSnippets_key="<S-space>"
  64. "let g:NERDSnippets_key="<C-tab>"
  65. let g:NERDSnippets_key="<F7><F7>"
  66.  
  67. " Minibuffer Explorer Settings
  68. let g:miniBufExplMapWindowNavVim = 1
  69. let g:miniBufExplMapWindowNavArrows = 1
  70. let g:miniBufExplMapCTabSwitchBufs = 1
  71. let g:miniBufExplModSelTarget = 1
  72. " Change which file opens after executing :Rails command
  73. let g:rails_default_file='config/database.yml'
  74.  
  75. syntax on
  76.  
  77. set wildmenu
  78. set autoread
  79. set nobackup
  80. set nowritebackup
  81. set smartindent
  82. set gdefault
  83. set cursorline
  84. set nu " Line numbers on
  85. set nowrap " Line wrapping off
  86. set directory=/tmp
  87.  
  88. " Visual
  89. set showmatch " Show matching brackets.
  90. set mat=5 " Bracket blinking.
  91. set list
  92. " Show $ at end of line and trailing space as ~
  93. set lcs=tab:\ \ ,eol:$,trail:~,extends:>,precedes:<
  94. set novisualbell " No blinking .
  95. set noerrorbells " No noise.
  96. set laststatus=2 " Always show status line.
  97.  
  98. " don't use folder browser when adding to project listings
  99. let g:proj_flags='imst'
  100. " no menu, and no toolbar:
  101. "set guioptions-=m
  102. set guioptions-=T
  103.  
  104. set term=xterm-256color
  105. " os x backspace fix
  106. set backspace=indent,eol,start
  107. "set t_kb
  108. fixdel
  109.  
  110. " tabs -> spaces
  111. set expandtab
  112. set tabstop=2
  113. set softtabstop=2
  114. set shiftwidth=2
  115.  
  116. " turn mouse on
  117. set mouse=a
  118.  
  119. " space = pagedown, - = pageup
  120. noremap <Space> <PageDown>
  121. noremap - <PageUp>
  122.  
  123. " remap'd keys
  124. "map <Tab><Tab> <C-W>w
  125. nnoremap <F5><F5> :set invhls hls?<CR> " use f5f5 to toggle search hilight
  126. nnoremap <F4><F4> :set invwrap wrap?<CR> " use f4f4 to toggle wordwrap
  127. nnoremap <F2><F2> :vsplit<CR>
  128. nnoremap <F3><F3> <C-W>w
  129. nmap <leader>s :source ~/.vimrc
  130. nmap <leader>v :e ~/.vimrc
  131. nnoremap <leader>d :NERDTreeToggle<CR>
  132. nnoremap <F6><F6> :TlistToggle<CR>
  133.  
  134. map <C-t> <Esc>:%s/[ ^I]*$//<CR>
  135.  
  136. " devorak mappings
  137. nnoremap q h
  138. nnoremap Q H
  139. nnoremap h x
  140. nnoremap H X
  141. nnoremap x l
  142. nnoremap X L
  143. nnoremap l q
  144. nnoremap L Q
  145.  
  146. set nohls
  147. set incsearch
  148. set showcmd
  149. set nowrap
  150. set hidden
  151.  
  152. filetype on " Enable filetype detection
  153. filetype indent on " Enable filetype-specific indenting
  154. filetype plugin on " Enable filetype-specific plugins
Add Comment
Please, Sign In to add comment