mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 17:28:49 +02:00
neovim: Add fold support
This should make dealing with large files slightly easier.
This commit is contained in:
parent
3456ad98d4
commit
ed05522acd
@ -26,6 +26,8 @@
|
|||||||
set softtabstop=0 " Edit soft tabs as if they're regular spaces
|
set softtabstop=0 " Edit soft tabs as if they're regular spaces
|
||||||
set shiftwidth=4 " Make autoindent appear as 4 spaces
|
set shiftwidth=4 " Make autoindent appear as 4 spaces
|
||||||
|
|
||||||
|
set foldmethod=indent
|
||||||
|
set foldlevelstart=99
|
||||||
|
|
||||||
map <MiddleMouse> <Nop>
|
map <MiddleMouse> <Nop>
|
||||||
imap <MiddleMouse> <Nop>
|
imap <MiddleMouse> <Nop>
|
||||||
@ -53,6 +55,12 @@
|
|||||||
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
||||||
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
autocmd BufWritePre,FileWritePre * silent! call mkdir(expand('<afile>:p:h'), 'p')
|
||||||
|
|
||||||
|
" Automatically save location/folds/etc. when re-opening files
|
||||||
|
augroup remember_folds
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWinLeave * mkview
|
||||||
|
autocmd BufWinEnter * silent! loadview
|
||||||
|
augroup END
|
||||||
'';
|
'';
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user