Created
March 23, 2016 20:31
-
-
Save giovaneliberato/9943c7e66215af1b4286 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
syntax on | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-pathogen' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'mileszs/ack.vim' | |
Plugin 'erickzanardo/vim-xclip' | |
Plugin 'godlygeek/tabular' | |
Plugin 'fatih/vim-go' | |
" Status bar plugin | |
Plugin 'bling/vim-airline' | |
let g:airline_left_sep = '' | |
let g:airline_right_sep = '' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Few configurations: | |
set hlsearch " Highlight search results | |
set encoding=utf8 | |
set background=dark | |
set ffs=unix,dos,mac | |
set modeline | |
set autoindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smarttab | |
set backspace=indent,eol,start | |
set laststatus=2 | |
set cpoptions+=n | |
set number | |
set vb | |
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=235 gui=NONE guifg=NONE guibg=NONE | |
map <tab> <c-w><c-w> " alternating between windows with tab | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
" CtrlP to ignore | |
set wildignore+=*.swp,*.pyc | |
let g:ctrlp_show_hidden = 1 | |
" NerdTree show hidden files | |
let NERDTreeShowHidden=1 | |
let NERDTreeIgnore=['\.sw*$', '\.pyc$'] | |
" Short cuts: | |
let mapleader="," | |
map <F2> :NERDTreeToggle<CR> | |
map <F3> :NERDTreeFind<CR> " Open NERDTree and focus on current file | |
map <F4> :Ack | |
map <F5> :e!<CR> " force reload current file | |
map <F6> :CtrlPClearAllCaches<CR> " clear all CtrlP cache | |
map <leader>W :w<CR> | |
map <leader>w :wincmd k<CR> " go window up | |
map <leader>s :wincmd j<CR> " go window down | |
map <leader>a :wincmd h<CR> " go window left | |
map <leader>d :wincmd l<CR> " go window right | |
map <leader>v :vertical :new<CR> " open new vertical window | |
map <leader>h :new<CR> " open a new horizontal window | |
map <leader>A :qa!<CR> " it force quit all vim buffers | |
map <leader>q :q<CR> " it quit current vim buffer | |
map <leader>Q :q!<CR> " it force quit current vim buffer | |
map <leader>n :tabnew<CR> " create a new tab | |
map <leader>z :tabprevious<CR> " move to previous tab | |
map <leader>x :tabnext<CR> " move to next tab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment