Giter Club home page Giter Club logo

ctrlp-smarttabs's Introduction

CtrlP-SmartTabs

Vim CtrlP plugin to switch between opened tabs.

Synopsis

With the vim plugin CtrlP you can easily open a file or a buffer. This is a ctrlp.vim extension that allow you to switch between different opened tabs.

Prerequisites

In order to use this plugin you need to have CtrlP installed.

Installation

If you use Vundle you can install this plugin adding this line:

Bundle 'DavidEGx/ctrlp-smarttabs'

to your .vimrc file and running the command:

:BundleInstall

In case you use pathogen as a plugin manager you can install it by running:

$ cd ~/.vim/bundle/
$ git clone https://github.com/DavidEGx/ctrlp-smarttabs.git

If you don't use any plugin manager I would strongly recommend you to have a look at Vundle or pathogen. If for any reason you don't want to use any plugin manager you can simple install this plugin by copying it to your ~/.vim folder:

$ wget http://www.vim.org/scripts/download_script.php?src_id=21191 -O ctrlp-smarttabs.zip
$ unzip ctrlp-smarttabs.zip -d ~/.vim
$ rm ctrlp-smarttabs.zip

Configuration

Put this into your vimrc so the SmartTabs search will show up when you open CtrlP:

let g:ctrlp_extensions = ['smarttabs']

Other options:

let g:ctrlp_smarttabs_modify_tabline = 1
" highlight or not tab titles while searching

let g:ctrlp_smarttabs_reverse = 1
" reverse the order in which the list is displayed

Basic Usage

You can see the list of opened tabs using :CtrlPSmartTabs, there you can select any opened tab and press enter to jump the opened tab. Alternatively it is possible to open CtrlP by pressing ctrlp and then reach SmartTabs pressing ctrlf repeatedly.

To use easily just add some mapping to your .vimrc:

" Just an example from my .vimrc
nnoremap <F3> :CtrlPSmartTabs<CR>
nnoremap <F4> :CtrlP<CR>

" or
nnoremap þ :CtrlPSmartTabs<CR> " Altgr+p to open SmartTabs
" 'þ' is equivalent to AltGr+p in my keyboard so this allow me to have ctrl+p and altgr+p for files a tabs

" or whatever mapping feels good

License

Copyright (C) 2013-2014 David Escribano Garcia. Distributed under GPLv3 license.

ctrlp-smarttabs's People

Contributors

davidegx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jonaustin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.