All Projects → kien → Ctrlp.vim

kien / Ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to Ctrlp.vim

Vim Simplebar
A simple non-attention-seeking Vim status line.
Stars: ✭ 10 (-99.86%)
Mutual labels:  viml
Peg.vim
PEG Syntax for Vim
Stars: ✭ 11 (-99.84%)
Mutual labels:  viml
Dotfiles
My dotfiles
Stars: ✭ 12 (-99.83%)
Mutual labels:  viml
Haskomplete.vim
A vim ftplugin for magical contextual haskell code completions
Stars: ✭ 10 (-99.86%)
Mutual labels:  viml
Vim Tsv
Tab Separated Value niceties for Vim
Stars: ✭ 11 (-99.84%)
Mutual labels:  viml
Darkspectrum
a gvim color scheme based on the oblivion color scheme for gedit
Stars: ✭ 11 (-99.84%)
Mutual labels:  viml
Zdict.vim
A vim plugin integrate with zdict - the last online dictionary framework you need.
Stars: ✭ 10 (-99.86%)
Mutual labels:  viml
Perforce.vim
Perforce source control features
Stars: ✭ 12 (-99.83%)
Mutual labels:  viml
Speech
Speech to text and text to speech via google speech api
Stars: ✭ 11 (-99.84%)
Mutual labels:  viml
...
dotfiles
Stars: ✭ 12 (-99.83%)
Mutual labels:  viml
Vimrc
My personal vim config. Now with organisation! :-)
Stars: ✭ 10 (-99.86%)
Mutual labels:  viml
Vimux Ipy
To send python code from vim to ipython running within a tmux split (with either visually selected code or with IPython like cells).
Stars: ✭ 11 (-99.84%)
Mutual labels:  viml
Vim Css To Inline
Transforms plain css into JSX inline styles
Stars: ✭ 12 (-99.83%)
Mutual labels:  viml
Vim Textobj Rubysymbol
Text object for manipulation of ruby symbol variables
Stars: ✭ 10 (-99.86%)
Mutual labels:  viml
Vimmyconf
Mi configuración de vim con pathogen
Stars: ✭ 12 (-99.83%)
Mutual labels:  viml
Molokai Terminal
A molokai-like theme for 16-color terminals and a 256-color theme for vim.
Stars: ✭ 10 (-99.86%)
Mutual labels:  viml
Specky
Functions to help make behavioral testing easy with ruby and rspec.
Stars: ✭ 11 (-99.84%)
Mutual labels:  viml
Vim Unite Watson.vim
vim-unite-watson.vim is the unite source for watson.
Stars: ✭ 13 (-99.82%)
Mutual labels:  viml
Focuspoint Vim
Vim color file that makes long coding sessions better while still maintaining color coordination and important keyword focus.
Stars: ✭ 12 (-99.83%)
Mutual labels:  viml
Ezjail Flavours
FreeBSD ezjail flavours
Stars: ✭ 12 (-99.83%)
Mutual labels:  viml

#This project is unmaintained You should use this fork instead.

ctrlp.vim

Full path fuzzy file, buffer, mru, tag, ... finder for Vim.

  • Written in pure Vimscript for MacVim, gVim and Vim 7.0+.
  • Full support for Vim's regexp as search patterns.
  • Built-in Most Recently Used (MRU) files monitoring.
  • Built-in project's root finder.
  • Open multiple files at once.
  • Create new files and directories.
  • Extensible.

ctrlp

Basic Usage

  • Run :CtrlP or :CtrlP [starting-directory] to invoke CtrlP in find file mode.
  • Run :CtrlPBuffer or :CtrlPMRU to invoke CtrlP in find buffer or find MRU file mode.
  • Run :CtrlPMixed to search in Files, Buffers and MRU files at the same time.

Check :help ctrlp-commands and :help ctrlp-extensions for other commands.

Once CtrlP is open:
  • Press <F5> to purge the cache for the current directory to get new files, remove deleted files and apply new ignore options.
  • Press <c-f> and <c-b> to cycle between modes.
  • Press <c-d> to switch to filename only search instead of full path.
  • Press <c-r> to switch to regexp mode.
  • Use <c-j>, <c-k> or the arrow keys to navigate the result list.
  • Use <c-t> or <c-v>, <c-x> to open the selected entry in a new tab or in a new split.
  • Use <c-n>, <c-p> to select the next/previous string in the prompt's history.
  • Use <c-y> to create a new file and its parent directories.
  • Use <c-z> to mark/unmark multiple files and <c-o> to open them.

Run :help ctrlp-mappings or submit ? in CtrlP for more mapping help.

  • Submit two or more dots .. to go up the directory tree by one or multiple levels.
  • End the input string with a colon : followed by a command to execute it on the opening file(s):
    Use :25 to jump to line 25.
    Use :diffthis when opening multiple files to run :diffthis on the first 4 files.

Basic Options

  • Change the default mapping and the default command to invoke CtrlP:

    let g:ctrlp_map = '<c-p>'
    let g:ctrlp_cmd = 'CtrlP'
  • When invoked, unless a starting directory is specified, CtrlP will set its local working directory according to this variable:

    let g:ctrlp_working_path_mode = 'ra'

    'c' - the directory of the current file.
    'r' - the nearest ancestor that contains one of these directories or files: .git .hg .svn .bzr _darcs
    'a' - like c, but only if the current working directory outside of CtrlP is not a direct ancestor of the directory of the current file.
    0 or '' (empty string) - disable this feature.

    Define additional root markers with the g:ctrlp_root_markers option.

  • Exclude files and directories using Vim's wildignore and CtrlP's own g:ctrlp_custom_ignore:

    set wildignore+=*/tmp/*,*.so,*.swp,*.zip     " MacOSX/Linux
    set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe  " Windows
    
    let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
    let g:ctrlp_custom_ignore = {
      \ 'dir':  '\v[\/]\.(git|hg|svn)$',
      \ 'file': '\v\.(exe|so|dll)$',
      \ 'link': 'some_bad_symbolic_links',
      \ }
  • Use a custom file listing command:

    let g:ctrlp_user_command = 'find %s -type f'        " MacOSX/Linux
    let g:ctrlp_user_command = 'dir %s /-n /b /s /a-d'  " Windows

Check :help ctrlp-options for other options.

Installation

Use your favorite method or check the homepage for a quick installation guide.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].