From e2b80919a7c34c0c87aa78c11cc4154921e70b31 Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Mon, 6 Feb 2017 11:59:41 +0800 Subject: [PATCH] neovim removes the need to specify 256 colors. --- vimrcs/filetypes.vim | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/vimrcs/filetypes.vim b/vimrcs/filetypes.vim index 8c4eb9db..0eeccec2 100644 --- a/vimrcs/filetypes.vim +++ b/vimrcs/filetypes.vim @@ -9,14 +9,14 @@ au BufNewFile,BufRead *.mako set ft=mako au FileType python map F :set foldmethod=indent -au FileType python inoremap $r return -au FileType python inoremap $i import -au FileType python inoremap $p print +au FileType python inoremap $r return +au FileType python inoremap $i import +au FileType python inoremap $p print au FileType python inoremap $f #--- a -au FileType python map 1 /class -au FileType python map 2 /def -au FileType python map C ?class -au FileType python map D ?def +au FileType python map 1 /class +au FileType python map 2 /def +au FileType python map C ?class +au FileType python map D ?def au FileType python set cindent au FileType python set cinkeys-=0# au FileType python set indentkeys-=0# @@ -32,10 +32,10 @@ au FileType javascript setl nocindent au FileType javascript imap $log();hi au FileType javascript imap alert();hi -au FileType javascript inoremap $r return +au FileType javascript inoremap $r return au FileType javascript inoremap $f //--- PHFP2xi -function! JavaScriptFold() +function! JavaScriptFold() setl foldmethod=syntax setl foldlevelstart=1 syn region foldBraces start=/{/ end=/}/ transparent fold keepend extend @@ -62,6 +62,6 @@ au FileType gitcommit call setpos('.', [0, 1, 1, 0]) """""""""""""""""""""""""""""" " => Shell section """""""""""""""""""""""""""""" -if exists('$TMUX') - set term=screen-256color +if exists('$TMUX') && !has('nvim') + set term=screen-256color endif