set nocompatible filetype indent plugin on set updatetime=100 set cursorline set hidden set wildmenu set showcmd set hlsearch set incsearch set ignorecase set smartcase set backspace=indent,eol,start set lazyredraw set autoindent set nostartofline set ruler set cmdheight=1 set laststatus=2 set so=2 set confirm set mouse=a set number set hid set notimeout ttimeout ttimeoutlen=200 set nowrap set t_Co=256 " No annoying sound on errors set noerrorbells set novisualbell set t_vb= set tm=500 set encoding=utf8 " Turn backup off set nobackup set nowb set noswapfile " Indentation set expandtab set smarttab set shiftwidth=2 set softtabstop=2 set tabstop=2 set rtp+=/usr/local/opt/fzf " Remap yank & paste vnoremap "+y map "+P " Yank to end of line nnoremap Y yg_ " Center next search results " cspell:disable nnoremap n nzzzv nnoremap N Nzzzv " cspell:enable " Better J cursor position nnoremap J mzJ`z " Undo break points inoremap , ,u inoremap { {u inoremap } }u inoremap [ [u inoremap ] ]u inoremap ( (u inoremap ) )u " Jumplist mutation nnoremap k (v:count > 5 ? "m'" . v:count : "") . 'k' nnoremap j (v:count > 5 ? "m'" . v:count : "") . 'j' " Moving text vnoremap J :m '>+1gv=gv vnoremap K :m '<-2gv=gv