From 1f58943edae39bb3d23dce507448a33138c1eb33 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 16 Feb 2021 19:24:45 +0200 Subject: Added autocompletion for HTML tags, tabs are now shown with a thin line --- .vimrc | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.vimrc b/.vimrc index 1e3daf9..74262ea 100644 --- a/.vimrc +++ b/.vimrc @@ -30,6 +30,7 @@ Plug 'tpope/vim-eunuch' " Easy UNIX shell commands Plug 'mg979/vim-visual-multi' " Multiple line cursor (and other stuff) Plug 'zivyangll/git-blame.vim' " Show who last edited a line Plug 'kien/tabman.vim' " Show open buffers +Plug 'alvan/vim-closetag' " Automatically add HTML closing tags """""""""""""""""""""""""""""""" @@ -39,8 +40,15 @@ call plug#end() " Vim settings """"""""""""""""""""""""""""""" +set list +" DO NOT remove the trailing space in the next line! +set listchars=tab:│\ + autocmd InsertEnter,InsertLeave * set cul! " Highlight current line, when in insert mode set backspace=indent,eol,start " Better backspace functionality +" Map Ctrl-Backspace to delete the previous word in insert mode. +noremap! +noremap! set scrolloff=0 " Don't keep any screen lines above or below the cursor " Thin cursor in insert mode in Gnome-Terminal (version >=3.16 ; also works with Terminator) @@ -71,10 +79,10 @@ imap i imap :wa " Use Ctrl + hjkl for navigation in insert mode -inoremap -inoremap -inoremap -inoremap +" inoremap +" inoremap +" inoremap +" inoremap " Cyrilic (Bulgarian yawerty layout) support ca в w @@ -91,8 +99,8 @@ ca tt tab ter ca te tabe " Go between tabs with Ctrl+l (tab to the right) and Ctrl+h (tab to the left) -nnoremap :tabn -nnoremap :tabp +" nnoremap :tabn +" nnoremap :tabp set number " Show line numbers to the left @@ -155,11 +163,19 @@ colorscheme gruvbox set background=dark " Setting dark mode let g:gruvbox_contrast_dark='medium' +""""""""""""""""""""""""""""""" +" DelimitMate +""""""""""""""""""""""""""""""" + +let delimitMate_expand_cr = 1 +" Don't autocomplete diamond brackets in HTML (compatibility with closetag plugin) +autocmd FileType html let b:delimitMate_matchpairs='(:),[:],{:}' + """"""""""""""""""""""""""""""" " NERDTree settings """"""""""""""""""""""""""""""" -let NERDTreeCustomOpenArgs={'file':{'where': 't'}} " Open file in new tab, doesn't work only for double-click +let NERDTreeCustomOpenArgs={'file':{'where':'t'}} " Open file in new tab, doesn't work only for double-click let NERDTreeShowHidden=1 " Toggle NERDTree with Tab nmap :NERDTreeToggle @@ -280,7 +296,7 @@ let g:lightline = { function! LightlineFugitive() if exists('*FugitiveHead') - let branch = FugitiveHead() + let branch = FugitiveHead() return branch !=# '' ? ' '.branch : '' endif return '' -- cgit v1.2.3