aboutsummaryrefslogtreecommitdiff
path: root/vim/config
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 /vim/config
parentMerge branch 'feature/bash-compl' into develop (diff)
downloaddotfiles-e85e3a2549fdbc2c3391ec92d4c179642d05bffb.tar.gz
dotfiles-e85e3a2549fdbc2c3391ec92d4c179642d05bffb.zip
Add \p Vim binding to show filetype
Diffstat (limited to 'vim/config')
-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=**