2020-02-09 12:29:17 -05:00
|
|
|
set nocompatible " be iMproved, required
|
|
|
|
filetype off " required
|
2023-09-27 12:21:12 -04:00
|
|
|
set visualbell
|
|
|
|
set noerrorbells
|
2020-02-09 12:29:17 -05:00
|
|
|
|
|
|
|
set relativenumber
|
|
|
|
set number
|
|
|
|
set autoindent
|
|
|
|
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
|
|
|
inoremap jj <Esc>
|
|
|
|
nnoremap <C-J> <C-W><C-J>
|
|
|
|
nnoremap <C-K> <C-W><C-K>
|
|
|
|
nnoremap <C-L> <C-W><C-L>
|
|
|
|
nnoremap <C-H> <C-W><C-H>
|
|
|
|
|
2024-06-13 08:35:48 -04:00
|
|
|
nnoremap vv vi
|
|
|
|
|
2024-03-24 16:32:06 -04:00
|
|
|
nnoremap <C-E> <C-E><C-E>
|
2024-05-27 10:29:13 -04:00
|
|
|
nnoremap <C-E> <C-E><C-E>
|
2024-03-24 16:32:06 -04:00
|
|
|
|
2023-09-27 12:21:12 -04:00
|
|
|
nnoremap dK <Esc>kdd
|
|
|
|
nnoremap dJ <Esc>jdd
|
|
|
|
|
2020-02-09 12:29:17 -05:00
|
|
|
nnoremap >f viwc<C-O>:set ri<CR><C-R>"<Esc>:set nori<CR>
|
|
|
|
vnoremap \f c<C-O>:set ri<CR><C-R>"<Esc>:set nori<CR>
|
|
|
|
|
2023-09-27 12:21:12 -04:00
|
|
|
let mapleader = " "
|
|
|
|
map <leader>bs :action BuildWholeSolutionAction<CR>
|
|
|
|
|
2020-02-09 12:29:17 -05:00
|
|
|
autocmd BufWinLeave *.* mkview
|
|
|
|
autocmd BufWinEnter *.* silent loadview
|
|
|
|
set viewoptions-=options
|
|
|
|
set nohlsearch
|
|
|
|
|
2024-03-22 11:17:32 -04:00
|
|
|
command! DD action CloseAllEditorsButActive
|
|
|
|
command! Dd action CloseAllEditorsButActive
|
|
|
|
|
|
|
|
command! Qa action CloseAllUnmodifiedEditors
|
|
|
|
command! QA action CloseAllUnmodifiedEditors
|
|
|
|
|
2020-02-09 12:29:17 -05:00
|
|
|
" Save with sudo
|
|
|
|
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
2024-01-21 02:17:26 -05:00
|
|
|
set ideajoin
|