call plug#begin()

Plug 'gruvbox-community/gruvbox'
Plug 'machakann/vim-sandwich'
Plug 'unblevable/quick-scope'

call plug#end()

let mapleader=" "

set background=dark
set expandtab
set foldopen=mark,search,tag,undo
set hidden
set ignorecase
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
set mouse=a
set nohlsearch
set number
set scrolloff=4
set shiftwidth=4
set showmode
set sidescrolloff=4
set smartcase
set smartindent
set softtabstop=4
set spelllang="en_au,en_gb"
set splitbelow
set splitright
set tabstop=4
set wrap

colorscheme gruvbox

if exists('g:vscode')

xmap gc <Plug>VSCodeCommentary
nmap gc <Plug>VSCodeCommentary
omap gc <Plug>VSCodeCommentary
nmap gcc <Plug>VSCodeCommentaryLine

highlight QuickScopePrimary guifg='#fbf1c7' gui=bold
highlight QuickScopeSecondary gui=none

endif

call plug#begin()

Plug 'gruvbox-community/gruvbox'
Plug 'machakann/vim-sandwich'
Plug 'unblevable/quick-scope'

call plug#end()

let mapleader=" "

set expandtab
set foldopen=mark,search,tag,undo
set hidden
set ignorecase
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
set mouse=a
set nohlsearch
set number
set scrolloff=4
set shiftwidth=4
set showmode
set sidescrolloff=4
set smartcase
set smartindent
set softtabstop=4
set spelllang="en_au,en_gb"
set splitbelow
set splitright
set tabstop=4
set wrap

noremap Y y$

if exists('g:vscode')
    xmap gc <Plug>VSCodeCommentary
    nmap gc <Plug>VSCodeCommentary
    omap gc <Plug>VSCodeCommentary
    nmap gcc <Plug>VSCodeCommentaryLine

    nnoremap k <Cmd>call VSCodeNotify('cursorMove', { 'to': 'up', 'by': 'wrappedLine', 'value': v:count ? v:count : 1 })<CR>
    nnoremap j <Cmd>call VSCodeNotify('cursorMove', { 'to': 'down', 'by': 'wrappedLine', 'value': v:count ? v:count : 1 })<CR>

    nnoremap gj j
    nnoremap gk k

    highlight QuickScopePrimary guifg='#fbf1c7' gui=bold
    highlight QuickScopeSecondary gui=none
else
    set background=dark
    colorscheme gruvbox

    nnoremap j gj
    nnoremap k gk

    nnoremap gj j
    nnoremap gk k
endif

Make small tweaks to Neovim configuration
Make small tweaks to Neovim configuration

scottwillmoore/dotfiles