diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-09-28 23:39:24 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-09-28 23:39:24 +0300 |
commit | c28be931f8bf6805bda1a79fdab76739fd4cb785 (patch) | |
tree | 62c1079f162469274cf468677139a1f8ec38e2bc | |
parent | 5ec55f35744239e6a25ed651c5b87335a04653b6 (diff) | |
download | vimrice-c28be931f8bf6805bda1a79fdab76739fd4cb785.tar.gz vimrice-c28be931f8bf6805bda1a79fdab76739fd4cb785.zip |
Insert datetime binding
-rw-r--r-- | dotfiles/.config/nvim/init.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim index f2525d3..60fa726 100644 --- a/dotfiles/.config/nvim/init.vim +++ b/dotfiles/.config/nvim/init.vim @@ -8,8 +8,6 @@ if empty(glob('~/.local/share/nvim/site/autoload/plug.vim')) autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif -" TODO: bind to insert datetime - call plug#begin('~/.local/share/nvim/site/plugged') Plug 'junegunn/goyo.vim' Plug 'PotatoesMaster/i3-vim-syntax' @@ -224,6 +222,10 @@ call plug#end() let g:goyo_width = 100 map <leader>g :Goyo<CR> +" Insert datetime + map <leader>d :r!date +"\%Y-\%m-\%dT\%H:\%M:\%S"<CR>kJ + map <leader>в :r!date +"\%Y-\%m-\%dT\%H:\%M:\%S"<CR>kJ + " LSP if has('nvim-0.6') set omnifunc=v:lua.vim.lsp.omnifunc |