Open szcf-weiya opened 3 years ago
用系统自带的拼音输入法出问题,后来换成了 IBUS-RIME,便解决了。另见 https://blog.hohoweiya.xyz/2021/05/02/back/
by default, TAB seems to have 8 spaces, and to be consistent with the common setting, redefine it with 4 spaces, following the instruction in https://stackoverflow.com/questions/1878974/redefine-tab-as-4-spaces
add the following lines into ~/.vimrc
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
V
mode, and then press >
https://unix.stackexchange.com/questions/16939/indent-several-lines-with-vim
V
+ <
ctrl+wv
:e filename
ctrl+ww
: switch windows, or ctrl+w, ctrl + w
tried captial mark, i.e, mA
and mB
in file A, and then mc
in file B, then :'A, 'B m 'c
, but it reports mark not set
another method, directly delete and then paste
d`a
https://vim.fandom.com/wiki/Using_marksp
ctrl+w
+ +
: increase height
https://vim.fandom.com/wiki/Resize_splits_more_quickly https://stackoverflow.com/questions/9383709/how-to-paste-in-the-line-where-the-cursor-is
ctrl+v
, $
, p
d^
, inspired from d$
R in Vim
Do not want to install a plugin such as https://github.com/jalvesaq/Nvim-R, which would also depend on the local configure environment and at least installation. So a simple environment is enough.
Since on G40, the window splitting terminal has not been installed, although it natively supports tabs. The basic requirement is window splitting, which can be done via
:vsp
orctrl+wv
ctrl+ws
then one window should be the terminal, so I found https://stackoverflow.com/questions/2782752/how-can-i-open-a-shell-inside-a-vim-window, just
:ter
, and it will automatically create a new subwindow.