Commit 1ecc8d0c authored by Sadman Kazi's avatar Sadman Kazi 🎸

Add fzf to vim and shell

parent a12a33bf
......@@ -21,6 +21,7 @@ For zsh:
* oh-my-zsh
* powerlevel9k
* nerd-fonts
* fzf
For i3blocks:
......@@ -34,6 +35,7 @@ For i3lock:
For vim:
* vundle
* fzf
Setup:
`stow <application_name>`
......@@ -118,3 +118,5 @@ export PATH=$COCOS_TEMPLATES_ROOT:$PATH
# Add environment variable ANT_ROOT for cocos2d-x
export ANT_ROOT="/usr/bin"
export PATH=$ANT_ROOT:$PATH
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
" colorscheme stuff
set t_Co=256
colorscheme jellybeans
set shell=zsh
let mapleader = " "
" show existing tab with 4 spaces width
set tabstop=4
......@@ -9,6 +11,7 @@ set tabstop=4
set nocompatible " be iMproved, required
filetype off " required
set rtp+=/usr/local/opt/fzf
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
......@@ -23,6 +26,8 @@ Plugin 'racer-rust/vim-racer'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'ramele/agrep'
Plugin 'junegunn/fzf.vim'
Plugin 'ludovicchabant/vim-gutentags'
" All of your Plugins must be added before the following line
call vundle#end() " required
......@@ -73,6 +78,27 @@ autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" Ctrl+n to toggle
map <C-n> :NERDTreeToggle<CR>
" fzf stuff
set rtp+=/usr/local/opt/fzf
" Find in git tracked files
nmap <Leader>f :GFiles<CR>
" Find in all files
nmap <Leader>F :Files<CR>
" Find in open buffer
nmap <Leader>b :Buffers<CR>
" Find in buffer history
nmap <Leader>B :History<CR>
" Find in current tag buffer
nmap <Leader>t :BTags<CR>
" Find in all project tags
nmap <Leader>T :Tags<CR>
" Find in lines in current buffer
nmap <Leader>l :BLines<CR>
" Find in all lines in loaded buffers
nmap <Leader>L :Lines<CR>
" Find in mappings
nmap <Leader>M :Maps<CR>
" Incase GVim is being used "
if has("gui_running")
set guioptions -=T
......
......@@ -69,9 +69,6 @@ export ZSH="/Users/kazsadma/.oh-my-zsh"
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
......@@ -106,3 +103,10 @@ POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_beginning"
ZSH_THEME="powerlevel9k/powerlevel9k"
source $ZSH/oh-my-zsh.sh
fpath=(~/.zsh/completion $fpath)
autoload -Uz compinit && compinit -i
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment