Serge Stroobandt
  • Member for 6 years, 5 months
  • Last seen more than a week ago
Delete text between two $ symbols in gvim
2 votes

This solves most corner cases onoremap <expr> a$ col('.') >= (col('$') - 1) && getline('.')[0] == '$' ? ':<C-U>normal! Bf$v,<CR>' : ':<C-U>normal! wBf$v,<CR>' ...

View answer
How to light the Caps Lock LED when in insert mode (on GNU/Linux)?
Accepted answer
6 votes

Caps Lock LED without root privileges 1) Making Caps Lock act like Esc The full path to below bash script was added to Session and Startup → Application Autostart in Xubuntu LTS. #!/usr/bin/env ...

View answer
Permission dependent behavior
-1 votes

Without breaking :help, nor NERDTree The problem with BufEnter * if (!&modifiable || &ro) or BufRead * if (!&modifiable || &ro) is that these do not distinguish file buffers from ...

View answer
Exit from Terminal mode in Neovim/Vim 8
7 votes

Exit & close tnoremap <Esc> <C-\><C-n>:q!<CR> In Vim 8, this also works: tnoremap <ESC> <C-w>:q!<CR>

View answer
How to map <A-h> without opening gvim help?
1 votes

" Disable Alt+[menukey] menu keys (i.e. Alt+h for help) set winaltkeys=no

View answer
How do I flip characters or words like emacs' transpose?
2 votes

Word swap mappings for Latin languages The word swap mappings from the Vim wiki will not operate correctly on words with accented characters. These mappings are adapted to work with (European) ISO/...

View answer
How can I inspire others to use vi/Vim?
1 votes

Vim is also a programming language of one-letter commands In conjunction with the vimrc configuration file, this allows you to make this editor do what is truly important to you. Vim is also about ...

View answer
How can I inspire others to use vi/Vim?
1 votes

Simply ask the pupil to swap two words with their Word™ processor… …then show how the master does this with vim. (Here is the mapping to do so; more here.) Finally, let the pupil contemplate whether ...

View answer
Displaying tabs as characters
32 votes

Highlighting tabs Temporary Tab highlighting For occasional use, one can simply highlight all tabs in a document using the following search / command: /\t To remove the highlighting, simply type :noh ...

View answer
Can the ENTER key be made to behave like the RETURN key? Should I do so in vim?
Accepted answer
2 votes

Since this issue was affecting only the normal mode, it was solved by adding the following lines at the very bottom of my .vimrc configuration file: nmap <kEnter> <CR> nmap <S-kEnter&...

View answer