We’re rewarding the question askers & reputations are being recalculated! Read more.
4

:g/func/# gives you an actionable outline of the current JavaScript buffer without installing any third party plugin or requiring any external program. Use func\|var to include variable declarations.


4

A variety of methods are at your disposal There are some very useful commands listed here, most notably [I, which will display all lines in the current and all included files containing the keyword under the cursor. See :h [I and :h include-search. You can :grep or :vimgrep to search for occurrences of a particular symbol (or any pattern for that matter), ...


3

Vim comes with a complete set of commands and options for using tags. You can read all about it in :help tags (the generic stuff) and :help ctags (the ctags-specific stuff that also applies to jsctags). But your plugin doesn't use any of those commands and settings and don't even use an actual tags file so you have an hyper-specialized plugin and a built-in ...


3

You can use a FileType autocmd and map those keys to <Nop>: augroup TagBar autocmd! autocmd FileType tagbar nnoremap <buffer> H <Nop> autocmd FileType tagbar nnoremap <buffer> L <Nop> augroup END Also always remember to enclose your autocmds with a augroup.


1

Function name should start from capital letter let g:is_tagbar=0 function Adjust_tagbar_width() if (g:is_tagbar==0) let g:is_tagbar=1 set columns=120 else let g:is_tagbar=0 set columns=80 endif endfunction nmap <F9> :TagbarToggle<CR> :exec Adjust_tagbar_width() <CR>


1

The CtrlP buffer has the name ControlP, so you should just be able to check this: autocmd CursorHold * if bufname("%") != 'ControlP' | call TagbarCurrentTag() | endif


1

Consulting the documentation of these plugins, you can find out how to tweak the position of their buffers. I achieved what you want as follows: let g:tagbar_left = 1 let g:tagbar_vertical = 25 let NERDTreeWinPos = 'left' nnoremap <f5> :NERDTreeToggle <CR> :TagbarToggle <CR> Note: :NERDTreeTabsToggle is not part of NERDTree itself, as it ...


1

You can use |. See :help :bar: '|' can be used to separate commands, so you can give multiple commands in one line. If you want to use '|' in an argument, precede it with '\'. In your case it would be: nnoremap <f5> :NERDTreeTabsToggle | :TagbarToggle<cr>


1

You should check your current directory to see if its the same as your tags file :pwd If not just :cd /to/dir/which/contains/yourtagfile and try again using tags. Please check this response for ways to set searching directories for tag files


1

I've developed a set of CTAGS regex rules for JavaScript and CoffeeScript. My rules include unit tests so I think they are more reliable than most. Here's my git repo which should be most up to date: https://github.com/winstonwolff/ctags-javascript-coffeescript And here are the rules I use as of writing this post: --languages=-JavaScript --langdef=js -...


Only top voted, non community-wiki answers of a minimum length are eligible