Skip to content

Commit 6af5baa

Browse files
author
Danny Olson
committed
Install tag list to view ctags.
1 parent 8ece935 commit 6af5baa

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Now open Vim and run `:BundleInstall`
3131
* This will also run the last test run so you can use this in a different file than the test.
3232
* \<leader\>s: Run RSpec tests in current context.
3333
* This will also run the last test run so you can use this in a different file than the test.
34+
* \<leader\>rt: ("re-tag") generates ctags for the current project.
35+
* \<leader\>lt: ("list tags") toggles the tag list for the current project.
3436

3537
## Other Additions
3638

@@ -85,6 +87,8 @@ instance, inside of "hello", typing `ysiw(` will change it to "( hello )".
8587
* [syntastic](https://github.com/scrooloose/syntastic) runs your compiler or interpreter and
8688
displays syntax errors in vim. A `>>` in the gutter means there is an error on that line, you can
8789
mouse over it for more details.
90+
* [taglist](https://github.com/vim-scripts/taglist.vim) view generated tags using <leader>lt
91+
("list tags").
8892
* [vroom](https://github.com/skalnik/vim-vroom) Run Rspec
8993
specs from Vim.
9094
* [ZoomWin](http://www.vim.org/scripts/script.php?script_id=508) lets you close all other windows

bundles.vimrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ Plugin 'scrooloose/syntastic'
2323
Plugin 'terryma/vim-multiple-cursors'
2424

2525
" Utilities
26+
Plugin 'bling/vim-airline'
2627
Plugin '907th/vim-auto-save'
2728
Plugin 'kien/ctrlp.vim'
2829
Plugin 'rgarver/Kwbd.vim'
2930
Plugin 'embear/vim-localvimrc'
3031
Plugin 'scrooloose/nerdtree'
31-
Plugin 'bling/vim-airline'
32+
Plugin 'taglist.vim'
3233
Plugin 'ZoomWin'
3334

3435
" Git

custom-clojure.vimrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ endfunction
5252
autocmd BufRead *.clj nnoremap <buffer> <leader>t :call RunTestFromFile()<CR>
5353
autocmd BufRead *_spec.clj,*_test.clj nnoremap <buffer> <leader>t :call RunTestWithReload()<CR>
5454
autocmd BufWritePre *.clj :call s:AutoReload()
55+
56+
let tlist_clojure_settings = 'lisp;f:function'

default.vimrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ nnoremap <silent> <leader>bd :Kwbd<CR>
131131
let g:auto_save = 1
132132

133133
" CTags
134-
map <leader>rt :!ctags --extra=+f --exclude=tmp --exclude=node_modules -Rf.git/tags * <CR><CR>
134+
map <leader>rt :!ctags --extra=+f --exclude=tmp --exclude=node_modules -R * <CR><CR>
135+
map <leader>lt :TlistToggle<CR>
136+
let Tlist_Use_Right_Window = 1
135137

136138
" Exclude Javascript files in :Rtags via rails.vim due to warnings when parsing
137139
let g:Tlist_Ctags_Cmd="ctags --exclude='*.js'"

0 commit comments

Comments
 (0)