Skip to content

vim-scripts/autocdls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatically ls after cd in Vim.

If you install autocdls.vim, it enables you to 'ls' after 'cd' automatically.

autocdls.gif

Installation

NeoBundle 'b4b4r07/autocdls.vim'

Usage

:Ls[!] [{path}]

    Show up some files in the {path} directory to cmd-line.
    If you want to show up all the files, including the files that begin
    with a dot in the {path} directory, then please put a bang. (|:Ls!|)
    If you omit the {path}, the current directory is specified as {path}.
    
:LsGrep[!] {word}

    Display the candidate that has the name of the directory that
    contains the {word} in the current directory.
    As well as |:Ls!|, if you want to search the directory that contains
    the {word}, then please put a bang. (|:LsGrep!|)

Key mapping

Optional.

nmap <Leader>ls <Plug>(autocdls-dols)
nmap <Leader>g  <Plug>(autocdls-do-lsgrep)

write your vimrc.

Options

" Set height of cmd-line (equals &cmdheight)
let g:autocdls_set_cmdheight = 2
" Count number of files when doing Ls
let g:autocdls_show_filecounter = 1
" View pwd when doing Ls
let g:autocdls_show_pwd = 0
" Repleace ls by Ls in cmd-line
let g:autocdls_alter_letter = 1
" Change spaces to newline (not recommended)
let g:autocdls_newline_disp = 0

About

Automatically shell-like ls after ':cd' in Vim

Resources

Stars

Watchers

Forks

Packages

No packages published