Posts

Showing posts with the label neovim

How to open 4 netrw file explors simultaneously in format [:][:] (each dot being a netrw file explorer pane)

How to open 4 netrw file explors simultaneously in format [:][:] (each dot being a netrw file explorer pane) In vim or neovim I can do the following :e.|vs.|vs.|sp. To open various netrw file explorers simultaneously. The command above results in the following layout: |netrw0|netrw1|netrw2| | | |netrw3| Now what I want to accomplish is a oneliner which results in the following layout: |netrw0|netrw2| |netrw1|netrw3| I'm not sure if this is possible, ofcourse I can switch panes to get the above result, however that is not what I want because the thing I'm actually doing is creating a function in my vimrc which I link to a function key, that way I can press a function key and open the desired splitted file browsing layout. ps. in my .init.vim (I'm using neovim), I have "set splitright" in order to open vertical splitted windows by default on the right side. Turned out easier than I thought and I've discovered the solution qu...

How to find the cause of nvim using excessive memory

How to find the cause of nvim using excessive memory My current nvim is using excessive memory, 34.1GB. How can I go about to find the cause of the excessive memory leak if any: Activity Monitor on MacOS reports this using the "i" inspector: Real memory size : 4,58 GB Virtual memory size : 40,74 GB Shared memory size : 8,00 GB Private memory size : 4,87 GB I have looked at the call graph using the sample feature of the Activity monitor, but to me it provides no meaningful information. The log provides pages of method names, in a graph. Here is an extract illustrating the method / function names: (I guess I need debug symbols or something to interpret this) + 59 ex_return (in nvim) + 110 [0x10d6ae827] + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + ! : | + 59 eval0 (in nvim) + 62 [0x10d6a3393] + ! : ...