Search code examples
vimdvoraktaglist

Unable to move upwards by t in Vim's Tlist when I use Dvorak


Problem: to move upwards in Vim's Taglist by "t"

The movement keys DHTN work in Vim when I am not in TagList.

I have the following in my .vimrc

 no h j 
 no t k 
 no n l 
 no s : 
 no S : 
 no j d 
 no J D 
 no l n 
 no L N
 no - $ 
 no _ ^ 
 no N 
 no ; z 
 no T L 
 no P P 
 no p p 

How can you enable the movement key "t" also in TagList?


Solution

  • The problem can be solved by adding the following to your .vimrc

    if v:version >= 700                                                                                                                                                                                           
             nnoremap <buffer> <silent> t
                         \ 
             nnoremap <buffer> <silent> <C-t>
                         \ 
             endif
    

    Response to Great's question:

    I remaped the key unsuccessfully by adding the following to my .vimrc

    if v:version >= 700
             nnoremap <buffer> <silent> l
                         \ :call <SID>Tlist_Window_Jump_To_Tag('checktab')<CR>
             nnoremap <buffer> <silent> <C-l>
                         \ :call <SID>Tlist_Window_Jump_To_Tag('newtab')<CR>
             endif  
    

    How would you do the remap?