filetype plugin indent on syntax on if has("nvim") else set cscopetag cscoperelative endif set guifont=Menlo:h24 if &t_Co < 256 && &diff colorscheme darkblue endif set fillchars+=vert:█ set tabstop=4 shiftwidth=4 softtabstop=4 expandtab set shiftround set autoindent set indentkeys-=0# set cinkeys-=0# set hlsearch set wildmenu set wildmode=longest:full set wmh=0 set laststatus=2 set foldmethod=syntax set hidden set incsearch set autoread set spelllang=en_ca set nottimeout ttimeoutlen=-1 set diffopt+=vertical set undofile "set listchars=eol:⏎:tab:↹·,extends:⇉,precedes:⇇,nbsp:␠,trail:␠,nbsp:␣ set showbreak=↳\ " shown at the start of a wrapped line set sidescroll=1 set grepprg=rg\ --vimgrep\ --no-heading set title set inccommand=nosplit if ! has("nvim") set printoptions=paper:letter,header:0 endif set listchars=tab:␉─, set list set infercase "let g:python_host_prog = '/usr/bin/python2' "let g:python3_host_prog = '/usr/bin/python3' let g:terminal_scrollback_buffer_size = 4096 nnoremap Y y$ nnoremap yY :%yank =v:register nnoremap dD :%delete =v:register nmap cC dDi nnoremap - - nnoremap + + nnoremap _ _ nnoremap nnoremap Q q:i cnoremap nnoremap ZA :qa! nnoremap t :tabs nnoremap b :buffers nnoremap :nohlsearch nnoremap S :%s//g nnoremap n 'Nn'[v:searchforward] nnoremap N 'nN'[v:searchforward] xnoremap < >gv xnoremap . :normal . xnoremap @ :'<,'>:normal @ nnoremap du :silent diffupdate vnoremap y "my\"" . v:register . "y`y" vnoremap Y "my\"" . v:register . "Y`y" nnoremap gs nnoremap :sp +terminal nnoremap :tabnew +terminal nnoremap [oL :set spelllang=en_CA nnoremap ]oL :set spelllang=fr_CA nnoremap w :%s/\v\s+$// vnoremap w :s/\v\s+$// if has("nvim") && !exists("g:vscode") au TextYankPost * lua vim.highlight.on_yank {higroup="IncSearch", timeout=150, on_visual=true} endif au BufWinEnter quickfix nnoremap Q :q aut TermOpen,TermEnter term://* startinsert aut TermLeave term://* stopinsert highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ match ExtraWhitespace /[^\t]\zs\t/ " TODO: autogroups instead. autocmd FileType diff syntax match diffRemoved /\v\[-.[^]]*-\]/ autocmd FileType diff syntax match diffAdded /\v\{\+.[^}]*\+\}/ autocmd FileType gitrebase set nowrap autocmd FileType mail setlocal complete+=k,s,kspell autocmd FileType mail setlocal completeopt+=longest autocmd FileType mail setlocal spell autocmd FileType mail inoremap autocmd FileType mail inoremap autocmd FileType mail normal gg autocmd FileType mail /^$/+1 autocmd FileType make set noexpandtab autocmd FileType python set colorcolumn=80 autocmd FileType python highlight Tab ctermbg=red guibg=red autocmd FileType text setlocal complete+=k,s,kspell autocmd FileType text setlocal completeopt+=longest autocmd FileType text setlocal spell autocmd FileType text inoremap autocmd FileType text inoremap