Are you on Mac? Mac has a “press and hold” feature for accents - e.g. pressing and holding a
shows a popup with different accented a
characters - à
, á
, etc. This means by default, pressing and holding j
won’t repeat the character (same in other apps). You can disable this, both system wide and per-application.
Globally:
defaults write -g ApplePressAndHoldEnabled -bool false
Per-application is a bit trickier, because you need to know the app ID.
defaults read | egrep -o 'com\.jetbrains\.\w+' | sort —unique
Should list all JetBrains related app IDs, so you should then be able to do:
defaults write com.jetbrains.pycharm ApplePressAndHoldEnabled -bool false
>>
command) recently? All my projects use tab indents. IdeaVim keeps inserting spaces sometimes when I do >>
. Sometimes it's one space, sometimes more, but always fewer than 4. Is it a bug, or is it a new feature that I need to disable? I don't want half-indented anything. If I wanted that, I would not have been using tabs in the first place.
set NERDTree
in .ideavimrc
and then refresh. And when I type :NERDTree
in command mode it says "Not an editor command: NERDTree". Did I miss something?
If the line above is empty, pressing O
(capital o
) gives me zero indentation. I think it might make more sense to instead match the indentation of the current line, as o
already does. Some reasons: vim seems to act that way; for symmetry with o
; and I think o
's behavior might be better. Re: the last point: almost all of the time the indent I want is closer to the current indent than to zero indent.
(This is in PyCharm. I've already tried moving ideavimrc + restart IDE, no difference.)
Hi guys!
Can you advice me to use:'<,'>sort
thing for the one line like['id', 'event_id', 'locale', 'options']
This one will work fine for the following multilines one:[ 'id', 'event_id', 'locale', 'options', ]
I also used a way with the following custom command:
command -nargs=0 -range SortLine <line1>,<line2>call setline('.',join(sort(split(getline('.'),' ')),' ')
but it does not work in IDEA :(