aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:17:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:17:48 +1200
commit3875b6caf69cc08467438d03a4b83b624f369aa0 (patch)
tree22022c1e2fd367d26aa7300f27050679617b8af6 /vim/vimrc
parenta523c9e85bba4cb6fb7d58c57c74d98b34d806c5 (diff)
downloaddotfiles-3875b6caf69cc08467438d03a4b83b624f369aa0.tar.gz
dotfiles-3875b6caf69cc08467438d03a4b83b624f369aa0.zip
Add \T map to clear filetype
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e93bcba1..982bd5ba 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -272,6 +272,8 @@ nnoremap <Bslash>R :<C-U>doautocmd filetypedetect BufRead<CR>
nnoremap <Bslash>s :<C-U>setlocal spell! spell?<CR>
" \t shows current filetype
nnoremap <Bslash>t :<C-U>setlocal filetype?<CR>
+" \T clears filetype (follow with \R)
+nnoremap <Bslash>T :<C-U>setlocal filetype=NONE<CR>
" \u sets US English spelling (compare \z)
nnoremap <Bslash>u :<C-U>setlocal spelllang=en_us<CR>
" \v shows all global variables