nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

fix: making sure to be more explicit with the movement shortcuts #151

Closed s4my closed 1 year ago

s4my commented 1 year ago

@nakst please tell me what IDE/editor do you use ?

nakst commented 1 year ago

@nakst please tell me what IDE/editor do you use ?

I use gVim.

s4my commented 1 year ago

I use gVim.

Perfect, can you add this to your .vimrc:

" Automatically removing all trailing whitespace
function! TrimWhiteSpaces()
    let l:save = winsaveview()
    keeppatterns %s/\s\+$//e
    call winrestview(l:save)
endfunction

augroup WHITESPACE
    autocmd!
    autocmd BufWritePre * :call TrimWhiteSpaces()
augroup END

You can also render tabs and spaces visible with this:

set list listchars=tab:⇥\ ,trail:·,precedes:←,extends:→