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:
parent
d836af8afd
commit
c7efed4f0c
1 changed files with 6 additions and 2 deletions
8
vimrc
8
vimrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue