Skip to content

Instantly share code, notes, and snippets.

@meisinger
Last active April 22, 2022 22:26
Show Gist options
  • Save meisinger/dc6df4ae61746b94eb845c8006c87789 to your computer and use it in GitHub Desktop.
Save meisinger/dc6df4ae61746b94eb845c8006c87789 to your computer and use it in GitHub Desktop.
set encoding=utf-8
set termencoding=latin1
set nocompatible
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'flazz/vim-colorschemes'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
set modelines=0
set t_Co=256
set timeoutlen=1000
set ttimeoutlen=0
set hidden
set switchbuf=useopen
set history=1000
set undolevels=1000
set nobackup
set noswapfile
set wildmenu
set wildmode=list:full
set lazyredraw
set ttyfast
" set visualbell
set showmode
set nowrap
set tabstop=2
set softtabstop=2
set shiftwidth=2
set shiftround
set expandtab
set backspace=indent,eol,start
set autoindent
set copyindent
set relativenumber
set number
set noshowmatch
set ruler
set mouse=r
set ignorecase
set smartcase
" set smarttab
set hlsearch
set incsearch
set formatoptions+=1
set scrolloff=2
set termencoding=utf-8
set encoding=utf-8
set laststatus=2
set title
set showcmd
set list listchars=tab:»-,trail:∙,extends:»,precedes:«
let mapleader="\<Space>"
set background=dark
colorscheme hybrid
let g:airline#extensions#whitespace#enabled=0
let g:airline_theme='bubblegum'
noremap <up> <nop>
noremap <down> <nop>
noremap <left> <nop>
noremap <right> <nop>
noremap ; :
noremap p gp
noremap P gP
nnoremap <Leader>a ^
nnoremap <Leader>z $
nnoremap <Leader>p %
nnoremap <Leader>d dd
nnoremap <Leader>w :bd<CR>
nnoremap <Leader>l :bn!<CR>
nnoremap <Leader>h :bp!<CR>
nnoremap <Leader>/ :nohl<CR>
nnoremap <C-P> :call fzf#run({'source': 'ag --hidden --ignore .git --ignore .hg -g ""', 'sink': 'e'})<CR>
cnoremap mk. !mkdir -p <C-R>=expand("%:h")<CR>/
map <Leader>cd :cd %:p:h<CR>
map <Leader>s :source $MYVIMRC<CR>
map <Leader>e :e $MYVIMRC<CR>
highlight Normal ctermbg=NONE
highlight NonText ctermbg=NONE
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath=&runtimepath
source ~/.vimrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment