From ae96271d17df2c7959e7d24322a5cd20e6e7d8c4 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 6 Dec 2016 02:20:19 +0300 Subject: [PATCH] less checks in vim config --- vimrc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/vimrc b/vimrc index 34c66db..61ebdc0 100644 --- a/vimrc +++ b/vimrc @@ -22,14 +22,9 @@ set tabstop=3 softtabstop=4 shiftwidth=4 smarttab expandtab set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] -" 256 colours at almost all times; do I even need it?.. -if $TERM =~ '^[xterm|rxvt-unicode|screen|st]' - let &t_Co=256 -endif -if $LANG =~ '[UTF\-8|utf8]$' - set termencoding=utf-8 - set encoding=utf-8 -endif +let &t_Co=256 +set termencoding=utf-8 +set encoding=utf-8 " insert shebang in the beginning of the file based on its name extension autocmd BufNewFile *.zsh 0put =\"#!/usr/bin/env zsh\\"|$