diff options
author | eug-vs <eug-vs@keemail.me> | 2021-01-06 20:11:13 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-01-06 20:11:13 +0300 |
commit | cce3af93c6b12ab0daa024fa3776645a538b8910 (patch) | |
tree | 4e8eb64a6c77beb7d97c863d9ce6d62d3425da52 /.vimrc | |
parent | 35ce6e0061a6ed8b270b4cbc59668ff745ad3c80 (diff) | |
download | dotfiles-cce3af93c6b12ab0daa024fa3776645a538b8910.tar.gz |
feat(vim): add mouse scroll, clean trailing spaces
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -8,6 +8,7 @@ syntax enable filetype plugin on " general stuff +set mouse=a set number set relativenumber set cursorline @@ -24,6 +25,9 @@ set autoindent " Good auto indent set showtabline=2 " Always show tabs set noshowmode " We don't need to see things like -- INSERT -- anymore set clipboard=unnamedplus " Copy paste between vim and everything else +set termguicolors +set ignorecase +set smartcase " enable gruvbox colorscheme: autocmd vimenter * ++nested colorscheme gruvbox @@ -34,7 +38,7 @@ nnoremap <leader>sv :source $MYVIMRC<CR> " windows set splitbelow -set splitright +set splitright nnoremap <TAB> <C-w>w nnoremap <S-TAB> <C-w>W nnoremap <c-h> <C-w>h @@ -97,6 +101,7 @@ autocmd VimEnter * set path=.,** set wildmenu set wildignore+=**/node_modules/**,**/build/**,**/dist/**,**/__pycache__/** +set wildmode=longest,list,full " tags command! MakeTags !ctags -R -f .git/tags --tag-relative --exclude=node_modules --exclude=.git --exclude=build --exclude=dist --map-Typescript=+.tsx @@ -112,6 +117,9 @@ augroup END vnoremap < <gv vnoremap > >gv +" remove trailing spaces on save +autocmd BufWritePre * %s/\s\+$//e + " Vimwiki let g:vimwiki_list = [{'path': '~/Documents/wiki/', 'syntax': 'markdown', 'ext': '.md'}] nnoremap <Leader>c :let &cole=(&cole == 2) ? 0 : 2 <bar> echo 'conceallevel ' . &cole <CR> |