From d5151c31464962392efa8f01c9101f3ee7252151 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 2 Jun 2023 08:10:19 +0300 Subject: [.vim] Moved startup scripts to .vim/ folder --- .vim/pluginsettings.vim | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .vim/pluginsettings.vim (limited to '.vim/pluginsettings.vim') diff --git a/.vim/pluginsettings.vim b/.vim/pluginsettings.vim new file mode 100644 index 0000000..72757f5 --- /dev/null +++ b/.vim/pluginsettings.vim @@ -0,0 +1,58 @@ +" 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 {{{ + " Toggle NERDTree with Tab + nmap :NERDTreeToggle + + let NERDTreeCustomOpenArgs = {'file':{'where':'t'}} " Open file in new tab, doesn't work only for double-click + let NERDTreeShowHidden = 1 + let NERDTreeWinPos = "right" + let NERDTreeIgnore = ['\.swp$', '\~$'] " Ignore file, ending with .swp and ~ + + " Do not save blank screens, solves https://github.com/preservim/nerdtree/issues/745 + set sessionoptions-=blank +" }}} + +" Undotree {{{ + " Toggle undotree with F5 + nmap :UndotreeToggle + + let g:undotree_WindowLayout = 2 + let g:undotree_ShortIndicators = 1 " e.g. using 'd' instead of 'days' to save some space. + let g:undotree_SetFocusWhenToggle = 1 " if set, let undotree window get focus after being opened, otherwise focus will stay in current window. + let g:undotree_TreeNodeShape = '*' + let g:undotree_DiffCommand = "diff" +" }}} + +" Tabman {{{ + let g:tabman_toggle = '' + let g:tabman_side = 'right' +" }}} + +" SuperTab {{{ + let g:SuperTabDefaultCompletionType = "context" +" }}} + +" ALE {{{ + map :ALERename + map gd :ALEGoToDefinition + map gi :ALEHover + map ge :ALEDetail + + set omnifunc=ale#completion#OmniFunc + let g:ale_completion_enabled = 1 + + let g:ale_floating_preview = 1 " Use floating window + let g:ale_floating_window_border = ['│', '─', '╭', '╮', '╯', '╰'] " Nicer borders + + let g:ale_typescript_tsserver_use_global = 1 " Use global tsserver package +" }}} + +" texty-office {{{ + let g:texty_office_executable_directory='/home/kamen/Programming/GitLab-repos/texty-office' + " let g:texty_office_pretty_mode=1 +" }}} -- cgit v1.2.3