Hello Community!
I will take the rh294 exam, already passed two other RH certificates and the main thing that slowed me down is the vim editor. I am very confortable using vim. I can split the screen with control-w+v, or open a new file with control-w+n, and switch between them with control-w+[hjkl]. Copy from one side to the other or open a terminal with :term. Etc.
The matter is, that in the exam, the terminal and the whole gnome is opened in a firefox browser, and as soon as I press control-w. Firefox closes the tab. So, In the exam, I was thinking in many difficult questions but not in these kind of things... unconsciously my fingers just pressed control-w for switching files and... the browser was closed... very frustrating...
For the exam I am trying to get used to work with... :wincmd but... it is not natural, not yet...
How do you handle this... feature?
How about using tmux. Cannot this be a solution?
Hi Petr! thanks for answering! Does it come by default in... fedora vm modified for the exam? does it work with hotkeys? Sorry, I know not so much about tmux... I wil spend some time with that. I am just getting used to work with two terminal and play with the control+shift+c, control+shift+v. I was looking for disabling the firefox hotkeys. or maybe another browser but... i think the default and only browser is firefox...
I think tmux could be exactly what you need, and I think (not sure) that it could also be installed even in the exam environment. Don't be angry with me if it cannot be. Please explore it and get familiar with it yourself. I understood you are the kind of person who heavily uses keyboard and shortcuts, looking for some multitasking in the terminal, so tmux is definitely a cool tool for you. Another possibility you surely know may be "fg" command and Ctrl-Z. But again, not sure about its use in the exam. It may give you some options, you will see, and have to improvise. Sorry, I could not help more.
You could also just use `:sp` for split or `:vs` for vertical split.
Or add custom mapping in your `.vimrc` by setting your leader from the default back slash to something easier to press like comma (or spacebar) in normal mode.
Then remap the window split/vertical/navigation/close so you can use the leader instead of ctrl.
"~/.vimrc
" Show the command pressed bottom right (visual indicator)
set showcmd
" Extend the command time from default 1 second (1000 ms) to 2 seconds
set timeoutlen=2000
" Use comma as the leader key
let mapleader = ","
" Vertical Split
nnoremap <leader>v <C-w>v
" Horizontal Split
nnoremap <leader>s <C-w>s
" Move to the previous windows hjkl
nnoremap <leader>h <C-w>h
nnoremap <leader>j <c-w>j
nnoremap <leader>k <C-w>k
nnoremap <leader>l <C-w>l
" Quit the window
nnoremap <leader>q <C-w>q
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.