aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-07 11:45:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-07 11:45:50 +1300
commite85e3a2549fdbc2c3391ec92d4c179642d05bffb (patch)
treec8cc877c68fa788de872a5f2d07ae60f6fde47f9
parent361c3986369d4a705328ad17aa0038e9380b44d7 (diff)
downloaddotfiles-e85e3a2549fdbc2c3391ec92d4c179642d05bffb.tar.gz
Add \p Vim binding to show filetype
-rw-r--r--vim/config/file.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/config/file.vim b/vim/config/file.vim
index 4bf1f86b..a0c99f6c 100644
--- a/vim/config/file.vim
+++ b/vim/config/file.vim
@@ -3,6 +3,11 @@ if has('autocmd')
filetype plugin indent on
endif
+" Bind \p to show filetype
+nnoremap <silent>
+ \ <Leader>p
+ \ :<C-U>set filetype?<CR>
+
" Use all ancestors of current directory for :find
if has('file_in_path')
set path=**