call plug#begin('~/.vim/plugged') Plug 'tpope/vim-surround' Plug 'tpope/vim-repeat' Plug 'dag/vim-fish', { 'for' : 'fish' } call plug#end() set nocompatible syntax on set number set relativenumber set splitbelow set splitright set tabstop=4 set shiftwidth=4 set expandtab set softtabstop=4 set nowrap set hlsearch set ignorecase set smartcase nohlsearch set timeoutlen=1000 set ttimeoutlen=0 set noswapfile set nobackup set hidden set autoindent color peachpuff let mapleader = "\" noremap noremap / :nohlsearch nnoremap D d$ nnoremap Y y$ nnoremap vv ^v$h noremap \ q noremap $ g_ nnoremap ' ` nnoremap ` ' nnoremap w :w nnoremap q :q nnoremap rl :so $MYVIMRC nnoremap h nnoremap j nnoremap k nnoremap l if system('uname -r') =~ "Microsoft" augroup Yank autocmd! autocmd TextYankPost * :call system('clip.exe ',@") augroup END endif let g:opamshare = substitute(system('opam config var share'),'\n$','','''') execute "set rtp+=" . g:opamshare . "/merlin/vim"