let g:did_install_default_menus = 1 let g:did_install_syntax_menu = 1 let g:did_indent_on = 1 " load ftplugin to set commentstring " let g:did_load_ftplugin = 1 let g:loaded_2html_plugin = 1 let g:loaded_getscript = 1 let g:loaded_getscriptPlugin = 1 let g:loaded_gzip = 1 let g:loaded_logiPat = 1 let g:loaded_logipat = 1 let g:loaded_man = 1 let g:loaded_matchit = 1 let g:loaded_matchparen = 1 let g:loaded_netrw = 1 let g:loaded_netrwFileHandlers = 1 let g:loaded_netrwPlugin = 1 let g:loaded_netrwSettings = 1 let g:loaded_remote_plugins = 1 let g:loaded_rrhelper = 1 let g:loaded_shada_plugin = 1 let g:loaded_spellfile_plugin = 1 let g:loaded_sql_completion = 1 let g:loaded_tar = 1 let g:loaded_tarPlugin = 1 let g:loaded_tutor_mode_plugin = 1 let g:loaded_vimball = 1 let g:loaded_vimballPlugin = 1 let g:loaded_zip = 1 let g:loaded_zipPlugin = 1 let g:skip_loading_mswin = 1 let g:vimsyn_embed = 1 let s:word_1000_dict_path = '~/.cache/nvim/google-10000-english-no-swears.txt' if !filereadable(expand(s:word_1000_dict_path)) silent execute '!curl --create-dirs -fLo ' .. s:word_1000_dict_path .. \ 'https://raw.githubusercontent.com/first20hours/google-10000-english/master/google-10000-english-no-swears.txt' endif execute 'set dictionary+=' .. s:word_1000_dict_path let s:dotfiles_dict_path = '~/dotfiles/.config/cspell/dotfiles.txt' if filereadable(expand(s:dotfiles_dict_path)) execute 'set dictionary+=' .. s:dotfiles_dict_path endif set ambiwidth=single set breakindent set breakindentopt=min:50,shift:4,sbr,list:-1 set cedit=\ set clipboard& set clipboard^=unnamed set clipboard^=unnamedplus set expandtab set foldcolumn=0 set formatoptions+=mM1 set ignorecase set laststatus=1 set nobackup set nolist set nomodeline set nonumber set noshowmode set noswapfile set nowritebackup set scrolloff=5 set shiftround set shiftwidth=2 set shortmess+=scI set showbreak=↪ set showtabline=0 set smartcase set smartindent set softtabstop=2 set splitbelow set splitright set tabstop=2 set title set whichwrap=b,s,h,l,<,>,[,],~ set wildmenu set wrap set wrapscan if executable('rg') set grepprg=rg\ --line-number\ --column\ --no-heading\ --color=never\ --hidden\ --trim\ --glob\ '!**/.git/*' set grepformat=%f:%l:%c:%m endif let g:alpha_lower = 'abcdefghijklmnopqrstuvwxyz' let g:alpha_upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' let g:digits = '0123456789' let g:alpha_all = g:alpha_lower .. g:alpha_upper let g:alnum = g:alpha_all .. g:digits command! -nargs=+ Grep silent grep! command! -nargs=+ GrepF silent grep! --fixed-strings -- command! -nargs=+ LGrep silent lgrep! command! -nargs=+ LGrepF silent lgrep! --fixed-strings -- command! -nargs=1 -complete=file VDiff vertical diffsplit command! VDiffAlt execute 'vertical diffsplit' expand('#') noremap j gj noremap k gk noremap gj j noremap gk k noremap gV `[v`] noremap H ^ noremap L $ map M % nnoremap / /\v nnoremap s nnoremap s/ :%s/ nnoremap S :%s/\V\<\>//g nnoremap