commit b3a69fba9e7a86b4a4b30777cff62462943ae1df
parent 24596289414e64134e1627b6befd4a7d358410f0
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Tue, 4 May 2021 20:42:05 +0200
vimrc improvements
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -59,10 +59,10 @@ let g:vimwiki_list=[{
\ 'template_ext': '.html',
\ 'custom_wiki2html_args': vw_toc . ' ' . vw_categories }]
-let g:vimwiki_folding='expr'
let g:vimwiki_global_ext=0
-autocmd FileType vimwiki set foldlevel=1
+let g:vimwiki_folding='custom'
nmap <Leader>t <Plug>VimwikiVSplitLink
+nnoremap <Leader>wha :VimwikiAll2HTML<CR>
" /plugins }}}
@@ -71,6 +71,7 @@ nmap <Leader>t <Plug>VimwikiVSplitLink
set hidden " hide buffers instead of closing them
set path+=** " find in subdirectories as well
set mouse="" " gets rid of mouse, should be by default
+set incsearch " incremental search (on by default on neovim)
" indentation
set expandtab " insert spaces instead of tabs
@@ -90,6 +91,10 @@ set breakindent " keeps indentation on wrapped lines
set splitbelow
set splitright
+" smart case searching
+set ignorecase " required for smart case
+set smartcase
+
" other useful defaults
syntax on " syntax coloring
set foldmethod=marker " using {{{ and }}} to delimit folding areas