Size: a a a

2019 December 21

Ш🌚

Ширмик 🌚 in NeoVim
источник

SA

Sergio Araujo in NeoVim
Ширмик 🌚
hello, guys. I have a problen with my NeoVim: in one file there are a column before numberline, but other files have no this column. How I can remove it?
It can be due some plug-in. Which ones do you have for the specific file type?
источник

SA

Sergio Araujo in NeoVim
Sergio Araujo
Close current buffer fast:

nnoremap <silent> <leader>x :bd!<cr>
It's worth reading :h :bd!
источник

SA

Sergio Araujo in NeoVim
Sorry :h bd
источник

Ш🌚

Ширмик 🌚 in NeoVim
Sergio Araujo
It can be due some plug-in. Which ones do you have for the specific file type?
only coc-flutter for Flutter autocompletion and dart-vim-plugin for highlighting
источник

SA

Sergio Araujo in NeoVim
Usually I see guys on stackoverflow asking people who have problems to share their settings because almost 100% of the time the problem resides on them
источник

SA

Sergio Araujo in NeoVim
In order to show the file Last Change time I have on my init.vim this:

let g:airline_section_b = 'LC %{strftime("%d-%b-%Y %H:%M", getftime(bufname("%")))}'
источник

SA

Sergio Araujo in NeoVim
LC stands for Last Change
источник
2019 December 22

SA

Sergio Araujo in NeoVim
I have changed :bd! to :bd because we can lose data
источник

SA

Sergio Araujo in NeoVim
How to close all buffers but current one?
https://bitbucket.org/snippets/sergio/9nbyGy
источник
2019 December 23

SA

Sergio Araujo in NeoVim
Repeat last command :

@:
источник
2019 December 24

SA

Sergio Araujo in NeoVim
Copy last command to the clipboard
:let @+=@:
источник

SA

Sergio Araujo in NeoVim
Load a clipboard function into vim
:@+
источник

SA

Sergio Araujo in NeoVim
Sergio Araujo
Load a clipboard function into vim
:@+
Useful to test functions with no need to put it on your vimrc
источник
2019 December 25

SA

Sergio Araujo in NeoVim
источник

SA

Sergio Araujo in NeoVim
Increment numbers with submatch on vimgifs
https://vimgifs.com/substitute-numbered-list/
источник

SA

Sergio Araujo in NeoVim
If you have one field with year of birth you can calculate like this:

:%s/\v(\d+)/\=("age: ".(2019-submatch(1)))/
источник

SA

Sergio Araujo in NeoVim
we can also use strftime("%Y") to get current year
:'<,'>s/\v(\d+)/\=("age: ".(strftime("%Y")-submatch(1)))/
источник

SA

Sergio Araujo in NeoVim
Above we are performing the action over the selected paragraph
источник
2019 December 26

SA

Sergio Araujo in NeoVim
When somebody talks bullshit about vim, give him or her this link
https://stackoverflow.com/a/1220118/2571881
источник