From c4e274867507819699625f331df0fa844ad00af8 Mon Sep 17 00:00:00 2001 From: caskd Date: Mon, 2 Mar 2020 03:12:16 +0100 Subject: [PATCH] Add smart tabs, shorten install command, restore clevertab --- vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index f4c6325..6d49426 100644 --- a/vimrc +++ b/vimrc @@ -1,13 +1,13 @@ -set mouse=a cb=unnamed,unnamedplus wim=longest,list,full nocompatible backspace=indent,eol,start cmdheight=1 bg=dark nu rnu showcmd incsearch listchars=tab:\|\ list cot=menu,longest,preview si cpt=".,w,b,i" tf path+=** aw +set mouse=a cb=unnamed,unnamedplus wim=longest,list,full nocompatible backspace=indent,eol,start cmdheight=1 bg=dark nu rnu showcmd incsearch listchars=tab:\|\ list cot=menu,longest,preview si sta cpt=".,w,b,i" tf path+=** aw filetype plugin on filetype indent on syntax on colorscheme delek cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! -cnoremap install! execute 'silent! write !sudo make install' +cnoremap i! execute 'silent! write !sudo make install' function! CleverTab() - if strpart( getline('.'), col('.')-2, col('.')-1 ) =~ '\w$' + if strpart( getline('.'), col('.')-2, 3) =~ '^\w' return "\\" else return "\"