Created
May 10, 2018 18:14
-
-
Save retpolanne/b6d05eafce0214eedde8d9ebc6fbecea 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 " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" Airline plugin | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
" Nerdtree | |
Plugin 'scrooloose/nerdTree' | |
" vim-go | |
Plugin 'fatih/vim-go' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
set autoindent | |
set number | |
set mouse= | |
set pastetoggle=<F3> | |
au FileType * set fo-=c fo-=r fo-=o | |
" Vim Airline stuff | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#fnamemod = ':t' | |
let g:airline_theme='simple' | |
" Buffer settings | |
" From https://joshldavis.com/2014/04/05/vim-tab-madness-buffers-vs-tabs/ | |
" This allows buffers to be hidden if you've modified a buffer. | |
" This is almost a must if you wish to use buffers in this way. | |
set hidden | |
" To open a new empty buffer | |
" This replaces :tabnew which I used to bind to this mapping | |
nmap <leader>T :enew<cr> | |
" Move to the next buffer | |
nmap <leader>l :bnext<CR> | |
" Move to the previous buffer | |
nmap <leader>h :bprevious<CR> | |
" Close the current buffer and move to the previous one | |
" This replicates the idea of closing a tab | |
nmap <leader>bq :bp <BAR> bd #<CR> | |
" Show all open buffers and their status | |
nmap <leader>bl :ls<CR> | |
" NERDTree | |
map <C-n> :NERDTreeToggle<CR> | |
" Indents | |
filetype plugin indent on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment