|
|
|
|
|
by CalebJohn
1306 days ago
|
|
I use the below to get that behavior when working with txt files. autocmd BufNewFile,BufReadPost *.txt noremap <buffer> <silent> k gk
autocmd BufNewFile,BufReadPost *.txt noremap <buffer> <silent> j gj
autocmd BufNewFile,BufReadPost *.txt noremap <buffer> <silent> 0 g0
autocmd BufNewFile,BufReadPost *.txt noremap <buffer> <silent> $ g$
If you want this for all filetypes, just remove everything before "noremap". noremap <buffer> <silent> k gk
noremap <buffer> <silent> j gj
noremap <buffer> <silent> 0 g0
noremap <buffer> <silent> $ g$
|
|