Skip to content

Instantly share code, notes, and snippets.

@sorribas
Created July 4, 2018 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sorribas/926e546d50bf624bf4978ad7ead0f833 to your computer and use it in GitHub Desktop.
Save sorribas/926e546d50bf624bf4978ad7ead0f833 to your computer and use it in GitHub Desktop.
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()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'fatih/vim-go'
Plugin 'kien/ctrlp.vim'
Plugin 'ap/vim-buftabline'
Plugin 'scrooloose/nerdtree'
Plugin 'rking/ag.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'airblade/vim-gitgutter'
Plugin 'schickling/vim-bufonly'
Plugin 'ElmCast/elm-vim'
Plugin 'mattn/emmet-vim'
Plugin 'Quramy/tsuquyomi'
Plugin 'leafgarland/typescript-vim'
call vundle#end() " required
filetype plugin indent on " required
set number
set nowrap
set nobackup
set nowritebackup
set noswapfile
set ic
set mouse=a
set incsearch
set tabstop=2
set shiftwidth=2
set expandtab
set exrc " enable per-directory .vimrc files
set secure " disable unsafe commands in local .vimrc files
set hidden
set completeopt-=preview
colorscheme koehler
xnoremap p "_dP
let mapleader=","
nmap <C-h> :bprevious<CR>
nmap <C-l> :bnext<CR>
let g:buftabline_indicators=1
let g:buftabline_separators=1
:hi TabLineFill ctermfg=5 ctermbg=5
:hi TabLine ctermfg=DarkYellow ctermbg=5
:hi TabLineSel ctermfg=White ctermbg=5
" my very own todo app
nmap <Leader>t :edit ~/todo<CR>
nmap <Leader>l I✓ <ESC>
" shortcuts
nmap <Leader>n :NERDTreeToggle<CR>
nmap <Leader>c :cclose<CR>
nmap <Leader>p :pclose<CR>
nmap <Leader>o :BufOnly<CR>
nmap <Leader>d :bd<CR>
nmap <Leader>g :GoDef<CR>
nmap <Leader>r :GoRename<CR>
syntax on
set wildignore+=node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment