Fix tab completion

* Add mapping for tab completion so Ctrl+P isn't necessary.
* Add a mapping to re-index ctags quickly from vim.
* Add explaining comment to Tlist.
This commit is contained in:
Dan Croak 2012-10-20 18:03:00 -07:00
parent d836af8afd
commit c7efed4f0c

8
vimrc
View file

@ -61,13 +61,17 @@ set numberwidth=5
" Snippets are activated by Shift+Tab
let g:snippetsEmu_key = "<S-Tab>"
" Tab completion options
" Tab completion
set wildmode=list:longest,list:full
set complete=.,w,t
imap <Tab> <C-P>
" Tags
" Exclude Javascript files in :Rtags via rails.vim due to warnings when parsing
let g:Tlist_Ctags_Cmd="ctags --exclude='*.js'"
" Index ctags from any project, including those outside Rails
map <Leader>ct :!ctags -R .<CR>
" Cucumber navigation commands
autocmd User Rails Rnavcommand step features/step_definitions -glob=**/* -suffix=_steps.rb
autocmd User Rails Rnavcommand config config -glob=**/* -suffix=.rb -default=routes