From b12d88ed476e6fca4b91c82ccba001cb31f52c8a Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Wed, 13 Sep 2017 14:25:22 +0100 Subject: [PATCH] better SyntaxItem() functionality --- vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index b47b922..e2b825d 100644 --- a/vimrc +++ b/vimrc @@ -155,6 +155,13 @@ set softtabstop=2 set shiftwidth=0 "use tabstop value set mouse=a +" rewrapping set to 80 +set tw=180 +" disable automatic wrapping +set fo=cq +" disable wrapping based on terminal size +set wm=0 + set t_Co=8 set t_Sf=[3%p1%dm set t_Sb=[4%p1%dm @@ -201,7 +208,7 @@ set undofile " get name of syntax item function! SyntaxItem() - return synIDattr(synID(line("."),col("."),1),"name") + return synIDattr(synID(line("."),col("."),1),"name") . " -> " . synIDattr(synIDtrans(synID(line("."),col("."),1)), "name" ) endfunction nnoremap p :echom SyntaxItem()