From d94b51cb37571f1dea71e1def66a93807a57469e Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 20 Mar 2017 23:05:07 +0100 Subject: Colors fixed for screen(1) --- doc/screen.txt | 9 +++++++++ vimrc | 9 ++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 doc/screen.txt diff --git a/doc/screen.txt b/doc/screen.txt new file mode 100644 index 0000000..5c375d2 --- /dev/null +++ b/doc/screen.txt @@ -0,0 +1,9 @@ +To run vim inside a screen session: + +TERM=vte-256color screen vim + +works very well. But if you are using another terminal you may be interested in +other possibilities, like this: + +find /usr/share/terminfo/ | grep screen | grep 256 + diff --git a/vimrc b/vimrc index 2217daa..a79d08c 100644 --- a/vimrc +++ b/vimrc @@ -235,12 +235,13 @@ let g:spellfile_URL = 'http://ftp.vim.org/vim/runtime/spell' " settings ============================================. " " autocmd BufEnter * lcd %:p:h -set autochdir | " When on, Vim will change the current working directory +" set autochdir | " When on, Vim will change the current working directory set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here " set selectmode=mouse,key,cmd | " enters vim's select mode when pressing shift-left or shift-END " set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text set breakindent | " Every wrapped line will continue visually indented set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) +set cmdheight=2 | " self explaining set complete+=d | " scan current and included files for defined name or macro set complete+=i | " scan current and included files for completions set concealcursor=nc | " limits the display of concealed text to normal and command mode @@ -274,8 +275,10 @@ set scrolljump=5 | " how many lines get scrolled into view when cur set splitbelow | " open new windows below the current one (i find that more intuitive) set shiftround | " indent/unindent snaps to multiple of shiftwidth set showcmd | " essential: show keys of combined commands in the lower right corner -" set t_Co=256 | " required on some ssh sessions +set t_Co=256 | " required on some ssh sessions " set textwidth=100 | " line length (80 used to be default, but...) +" set textwidth=120 | " line length (80 used to be default, but...) +set colorcolumn=120 set thesaurus+=/home/max/.vim/thesaurus/php.txt set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) set ttimeoutlen=10 | " set esc key timeout in ms- @@ -446,7 +449,7 @@ if !has('nvim') set ttymouse=xterm2 set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim set ttyfast | " improves speed for terminal vim (incomp. with nvim) - set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim + " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim else " shortcut \t opens a terminal in a horizontal split nnoremap t :new +terminal -- cgit v1.2.3