diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/filetype.vim | 4 | ||||
-rw-r--r-- | vim/vimrc | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim index d5c9bdb8..69847ba7 100644 --- a/vim/filetype.vim +++ b/vim/filetype.vim @@ -488,8 +488,8 @@ augroup filetypedetect \ setfiletype config autocmd BufNewFile,BufRead \ */log/* - \,*.log - \ setf messages + \,?*.log + \ setfiletype messages " Clumsy attempt at typing files in `sudo -e` if a filename hasn't already " been found; strip temporary extension and re-run @@ -200,7 +200,8 @@ nnoremap ]t :<C-U>tabnext<CR> nmap [<Space> <Plug>PutBlankLinesAbove nmap ]<Space> <Plug>PutBlankLinesBelow -" Remap normal J to hold the cursor still while joining lines +" Remap normal J to stay in place while joining lines; fall back to default +nnoremap <Plug>FixedJoin J nmap J <Plug>FixedJoin " Remap normal Y to yank to end of line (consistent with C, D) |