set clipboard+=unnamedplus set cursorline "Get a cursor line" set number "set relativenumber set history=1000 "Store lots of :cmdline history set showcmd "Show incomplete cmds down the bottom set showmode "Show current mode down the bottom set gcr=a:blinkon0 "Disable cursor blink set visualbell "No sounds set autoread "Reload files changed outside vim set ignorecase set smartcase set nomodeline " ================ Toggle Paste ==================== nnoremap ,p :set paste! nopaste? " ================ Map WQ and W, Q ==================== :command WQ wq :command Wq wq :command W w :command Q q " ================ Toggle Paste ==================== nnoremap ,n :set number! nonumber? "=================================================== "Copy filename and Path via VIM "=================================================== nnoremap ,cd :cd %:p:h:pwd nnoremap ,sp :echo expand("%:p") " ================ ESC clears highlight ==================== nnoremap :noh " buffer switching with gn and gp map gn :bn map gp :bp map gd :bd " hidden buffers (can switch without saving) set hidden " no mouse set mouse=vi " show trailing whitespace :highlight ExtraWhitespace ctermbg=red guibg=red :match ExtraWhitespace /\s\+\%#\@-,extends:>,precedes:<