Permalink
Browse files

ctags, completion experiments, bundle updates

  • Loading branch information...
1 parent aae6d60 commit 560ebdc142eb3ce03a53ba081d2b5391a0b2f7fa @imajes committed Jul 18, 2012
Showing with 19 additions and 9 deletions.
  1. +1 −1 bundle/fugitive
  2. +1 −1 bundle/gist-vim
  3. +1 −1 bundle/markdown
  4. +1 −1 bundle/nerdtree
  5. +1 −1 bundle/rails
  6. +1 −1 bundle/syntastic
  7. +1 −1 bundle/tcomment
  8. +8 −0 rc.d/customizations.vim
  9. +4 −2 rc.d/mappings.vim
Submodule fugitive updated 1 files
+6 −3 plugin/fugitive.vim
Submodule markdown updated 1 files
+3 −3 syntax/markdown.vim
Submodule rails updated 1 files
+40 −27 autoload/rails.vim
@@ -26,6 +26,14 @@ au FocusLost * silent! :wa
let g:xml_syntax_folding=1
au FileType xml setlocal foldmethod=syntax
+" completions, from http://robots.thoughtbot.com/post/27041742805/vim-you-complete-me
+set complete=.,b,u,]
+set wildmode=longest,list:longest
+set completeopt=menu,preview
+
+" lets also run ctags every time we lose focus, as we want to keep this file current
+au FocusLost * silent! :!/usr/local/bin/ctags -a -f .tags --exclude=.git --exclude=log -R * --extra=+f --langmap='ruby:+.rake.builder.haml'
+
if has("gui_running")
set guioptions=egmrt
" undo history
View
@@ -1,14 +1,16 @@
" Section: Mappings
" ----------------------
-nmap <silent> <Leader>g :!/usr/local/bin/ctags -R --languages=Ruby,C,C++ -f .tags --langmap='ruby:+.rake.builder.haml'<CR>
+nmap <silent> <Leader>g :!/usr/local/bin/ctags -f .tags --exclude=.git --exclude=log -R * `rvm gemdir`/gems/* --extra=+f --langmap='ruby:+.rake.builder.haml'<CR><CR>
map Y y$
" Don't use Ex mode; use Q for formatting
map Q gqj
+
if exists(":nohls")
nnoremap <silent> <C-L> :nohls<CR><C-L>
endif
+
inoremap <C-C> <Esc>`^
nnoremap zS r<CR>ddkP=j
@@ -88,7 +90,7 @@ map <C-F4> :bdelete<CR>
noremap <S-Insert> <MiddleMouse>
noremap! <S-Insert> <MiddleMouse>
-map \\ <Plug>NERDCommenterInvert
+"map \\ <Plug>NERDCommenterInvert
map <Leader>l <Plug>CapsLockToggle
imap <C-L> <Plug>CapsLockToggle
imap <C-G>c <Plug>CapsLockToggle

0 comments on commit 560ebdc

Please sign in to comment.