aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-19 17:02:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-19 17:02:28 +1200
commita1b8cb8d2ef2c2b9967f40bd53609e77d08915e2 (patch)
tree0b15a4577654377cf3ca25089f4927242821e389
parentSimplify syntax settings (diff)
downloaddotfiles-a1b8cb8d2ef2c2b9967f40bd53609e77d08915e2.tar.gz
dotfiles-a1b8cb8d2ef2c2b9967f40bd53609e77d08915e2.zip
Move filetype print mapping to more logical place
-rw-r--r--vim/vimrc7
1 files changed, 3 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e56fdd84..84c347c8 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -16,9 +16,11 @@ if has('eval')
let g:maplocalleader = '_'
endif
-" Load filetype settings, including filetype plugins and indent settings
+" Load filetype-specific plugins, indent settings, and syntax highlighting
+" Bind \p to show filetype at a glance
if has('autocmd')
filetype plugin indent on
+ nnoremap <silent> <Leader>p :<C-U>set filetype?<CR>
endif
" Options dependent on the syntax feature
@@ -157,9 +159,6 @@ nnoremap <silent> <Leader>l :<C-U>set list! list?<CR>
set nonumber
nnoremap <silent> <Leader>n :<C-U>set number! number?<CR>
-" 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=**