Coder Social home page Coder Social logo

Comments (6)

michal-h21 avatar michal-h21 commented on August 31, 2024

Thanks for the report. I cannot reproduce it, unfortunately. Could you please share also your configuration for Vim-zettel?

from vim-zettel.

rober-m avatar rober-m commented on August 31, 2024

Thanks to you for the proyect! Sure!

OS: MacOS 10.15.4
Vim: 8.2.539

This is my vimrc:

" Para que funcione bien vimwiki
set nocompatible              " be iMproved, required
filetype off                  " required
syntax on

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

"FuzzyFider
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'

Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}

" Zettelkasten
Plugin 'vimwiki/vimwiki'
Plugin 'michal-h21/vim-zettel'

"Tema
Plugin 'morhetz/gruvbox'

"Soncronizar automaticamente Github
Plugin 'michal-h21/vimwiki-sync'

call vundle#end()            " required
filetype plugin indent on    " required

call plug#begin('~/.vim/plugged')
Plug 'https://github.com/alok/notational-fzf-vim'
call plug#end()

"----------------------------- VimWiki Zettelkasten ----------------------------------------
" Settings for Vimwiki
let g:vimwiki_list = [{'path':'~/scratchbox/vimwiki/zettelkasten/','ext':'.md','syntax':'markdown'}]
let g:vimwiki_autowriteall = 1
"let g:zettel_fzf_command = 
let g:zettel_format = "%y-%m-%d_%H%M_%title"
let g:zettel_options = [{"template" :  "~/scratchbox/vimwiki/template1.tpl"}]
let g:nv_search_paths = ['~/scratchbox/vimwiki/zettelkasten']

"nnoremap <leader>d :ZettelBackLinks<CR>
nnoremap <C-p> :ZettelOpen<CR>

"-----------------------------  Visual  ----------------------------------------
set relativenumber
set tabstop=4 softtabstop=4
set nowrap
set smartcase
set termguicolors

set colorcolumn=100
highlight ColorColumn ctermbg=0 guibg=lightgrey

autocmd vimenter * colorscheme gruvbox

"-----------------------------  Splits  ----------------------------------------
let mapleader = " "
set timeout timeoutlen=3000 ttimeoutlen=100
set splitright
set splitbelow

nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>
nnoremap <leader>k :wincmd k<CR>
nnoremap <leader>l :wincmd l<CR>
nnoremap <Leader>+ :vertical resize +5<CR>
nnoremap <Leader>- :vertical resize -5<CR>

"-----------------------------  Escribir  ----------------------------------------

nnoremap ; :
nnoremap : ; 
inoremap ; :
inoremap : ; 

"-----------------------------  Usabilidad  ----------------------------------------
set noerrorbells
nnoremap <C-s> :w<CR>
" Convertir palabr en tag
nnoremap <leader>t bi:<ESC>t<Space>a:<ESC> 

Thank you again!

from vim-zettel.

michal-h21 avatar michal-h21 commented on August 31, 2024

I still cannot reproduce it, I am afraid :/ But I can see that you have mappings for : in the vimrc file. I've found that I use execute ":w" on the quite a few places in vim-zettel, so maybe this is the problem. I found that it is not necessary to use :w, w is enough, so I replaced them. Does this fix it for you?

from vim-zettel.

rober-m avatar rober-m commented on August 31, 2024

Thank you for the response. I tried so many things by now... and what I have to prove it you ask? A new bug... haha. I removed everything from the .vimrc except for the plugins and the minimal vim-zettel and Vimwiki config.

Now the previous bug disappeared, but there is a new one. When I create a note inside another note, the link is generated, but not the new note. So, when I hit Enter on the link, it goes nowhere.

By the way, the thing that made the previous bug disappear was commenting this line:
let g:zettel_format = "%y-%m-%d_%H%M_%title"
I can't say why.

I will reinstall everything and report back. Luckily my work setup is safe on Neovim.

from vim-zettel.

rober-m avatar rober-m commented on August 31, 2024

IT WORKED! I reinstalled everything and now works perfectly. I don't know why. Maybe a clash of plugins?

Thank you so much for your help! This issue is no more!

from vim-zettel.

michal-h21 avatar michal-h21 commented on August 31, 2024

Great! Yes, package clash is definitely possible, maybe you had older version of some of the packages, so update fixed that.

from vim-zettel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.