Skip to content

Instantly share code, notes, and snippets.

@Ectsang
Created August 23, 2016 04:01
Show Gist options
  • Save Ectsang/82ad254ec92f7bec22a6d47ccbdab9e2 to your computer and use it in GitHub Desktop.
Save Ectsang/82ad254ec92f7bec22a6d47ccbdab9e2 to your computer and use it in GitHub Desktop.
let mapleader=","
let macvim_skip_colorscheme = 1
syntax on
colorscheme gruvbox
execute pathogen#infect()
set nocompatible
set hidden
set mouse=a
set rtp+=~/.fzf
set tabstop=4
set autoindent
set copyindent
set number
set shiftwidth=4
set showmatch
set ignorecase
set smartcase
set smarttab
set hlsearch
set incsearch
set history=10000
set undolevels=10000
set wildignore=*.swp,*.bak,*.pyc,*.class
set title
set visualbell
set noerrorbells
set noswapfile
set nobackup
filetype plugin on
" ; is now :
nnoremap ; :
"Switch Splits
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
"Switch Tabs
nnoremap <Leader>n :tabprevious<CR>
nnoremap <Leader>m :tabnext<CR>
"Switch Buffers
:nnoremap <Tab> :bnext<CR>
:nnoremap <S-Tab> :bprevious<CR>
"FZF
nnoremap <Leader>. :FZF<CR>
"Ag Silver Searcher
nnoremap <Leader>f :Ag<Space>
"NERDTree
autocmd vimenter * NERDTree
call plug#begin('~/.vim/plugged')
Plug 'zenbro/mirror.vim'
Plug 'rking/ag.vim'
call plug#end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment