Skip to content

Instantly share code, notes, and snippets.

@khlbrg
Last active December 5, 2019 08:07
Show Gist options
  • Save khlbrg/0bd2b92af3a95c173c92345530488254 to your computer and use it in GitHub Desktop.
Save khlbrg/0bd2b92af3a95c173c92345530488254 to your computer and use it in GitHub Desktop.
vim
" Begin .vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'govim/govim'
Plugin 'jiangmiao/auto-pairs'
"Plugin 'fatih/vim-go',
call vundle#end()
filetype plugin indent on
" --- General settings ---
set backspace=indent,eol,start
set ruler
set number
set showcmd
set incsearch
set hlsearch
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let mapleader = ","
nnoremap <Leader>a :echo "Hey there ,"<CR>
nmap =j :%!python -m json.tool<CR>
nmap <silent> <buffer> <Leader>h : <C-u>call GOVIMHover()<CR>
" --- Keys ---
"com! FormatJSON %!python -m json.tool
set mouse=a
set showcmd
set expandtab
set tabstop=4
syntax on
" End .vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment