Saturday, August 18, 2012

VIM: Cdargs

Cdargs is a curses based directory bookmarking tool. See

This works nice on bash but I wanted something like that to work with VIM. Tried NERDTree bookmarking but still wanted something like curses. Press a key a list is displayed where you can move around. Something like screen window list shown on pressing C-A+"

I found it that it was way too easy to integrate cdargs with vim using a vim function. The function is self-explanatory. Read the see links and you will be able to decipher the function.

" See
function! Cd()
    exe "!cdargs"
    let mydir = system("cat /home/jay/.cdargsresult")
    " See
    cd `=mydir`
" Alias to my function so you do not need to type call everytime.
command Cd call Cd()

There is also  VIM plugin which uses cdargs but it does not show the curses window. See:

No comments:

Post a Comment