Skip to content

Commit e38a26a

Browse files
committed
nvim: Improve F6 returning to last position
1 parent 445d32c commit e38a26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.config/nvim/init.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ if !exists('g:vscode')
194194
inoremap <F3> <Esc>:set list!<CR>a
195195
196196
" <F6> to remove trailing whitespace
197-
nnoremap <silent> <F6> :%s/\s\+$//<CR>''
197+
nnoremap <silent> <F6> :%s/\s\+$//<CR><C-o>
198198
199199
" <F7> to cycle spell
200200
nnoremap <F7> :call CycleSpell()<CR>

0 commit comments

Comments
 (0)