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()