From 35038db113ddb283dbe0143fe833d245fcb07250 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 30 Nov 2019 13:37:11 +0300 Subject: change default tabstop/shiftwidth --- .vimrc | 60 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.vimrc b/.vimrc index 647e93c..dea2745 100644 --- a/.vimrc +++ b/.vimrc @@ -8,26 +8,26 @@ let mapleader =" " set nocompatible filetype plugin on syntax on - set background=dark - set termguicolors - set guicursor=n-v-c-sm:hor20,i-ci-ve:ver25,r-cr-o:block - set cursorline - let g:gruvbox_italic=1 - let g:airline_theme='ultramar' - let g:airline#extensions#tabline#enabled = 1 - colorscheme ultramar + set background=dark + set termguicolors + set guicursor=n-v-c-sm:hor20,i-ci-ve:ver25,r-cr-o:block + set cursorline + let g:gruvbox_italic=1 + let g:airline_theme='ultramar' + let g:airline#extensions#tabline#enabled = 1 + colorscheme ultramar " set encoding=utf-8 set number " airline - let g:airline_left_sep='' - let g:airline_right_sep='' - let g:airline_inactive_collapse=1 + let g:airline_left_sep='' + let g:airline_right_sep='' + let g:airline_inactive_collapse=1 " indentation filetype plugin indent on - set tabstop=4 - set shiftwidth=4 + set tabstop=2 + set shiftwidth=2 set expandtab " Splits open at the bottom and right, which is non-retarded, unlike vim defaults. @@ -70,16 +70,16 @@ let mapleader =" " vnoremap "*y :let @+=@* " Copy to clipboard - vnoremap y "+y - nnoremap Y "+yg_ - nnoremap y "+y - nnoremap yy "+yy + vnoremap y "+y + nnoremap Y "+yg_ + nnoremap y "+y + nnoremap yy "+yy " Paste from clipboard - nnoremap p "+p - nnoremap P "+P - vnoremap p "+p - vnoremap P "+P + nnoremap p "+p + nnoremap P "+P + vnoremap p "+p + vnoremap P "+P " Enable Goyo by default for mutt writting " Goyo's width will be the line limit in mutt. @@ -89,7 +89,7 @@ let mapleader =" " " Enable autocompletion: set wildmode=longest,list,full set wildmenu - imap + imap " Automatically deletes all tralling whitespace on save. autocmd BufWritePre * %s/\s\+$//e @@ -104,11 +104,11 @@ let mapleader =" " autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o " Join line with ctrl - nnoremap J + nnoremap J " Easier tab navigation (similar to qutebrowser) - nnoremap J :tabn - nnoremap K :tabp + nnoremap J :tabn + nnoremap K :tabp " C-T for new tab nnoremap :tabe @@ -124,12 +124,12 @@ let mapleader =" " inoremap wj " latex pdf viewer - let g:livepreview_previewer = 'zathura' + let g:livepreview_previewer = 'zathura' " To avoid switching between keyboards - set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz + set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz " neomake - let g:neomake_javascript_enabled_makers = ['eslint'] - let g:neomake_javascript_eslint_exe = $PWD .'/node_modules/.bin/eslint' - call neomake#configure#automake('w') + let g:neomake_javascript_enabled_makers = ['eslint'] + let g:neomake_javascript_eslint_exe = $PWD .'/node_modules/.bin/eslint' + call neomake#configure#automake('w') -- cgit v1.2.3