forked from extern/nix-config
neovim: Make it easier to exit terminal
Note that <Esc> cannot be used for the keybind here since other plugins like fzf-vim rely on using a terminal window that has its own escape binding.
This commit is contained in:
parent
9f78256c4c
commit
6a53d7f5eb
@ -62,6 +62,8 @@ in {
|
|||||||
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')
|
||||||
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
|
autocmd VimEnter * silent! :cd `git rev-parse --show-toplevel`
|
||||||
|
|
||||||
|
tnoremap <C-space> <C-\><C-n>
|
||||||
'';
|
'';
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user