aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-03-20 23:05:07 +0100
committerMax Christian Pohle2017-03-20 23:05:07 +0100
commitd94b51cb37571f1dea71e1def66a93807a57469e (patch)
treea871058dae8f5f3d327d665cce9a1675ed738285
parent4cf297f745fadb3c82f579cf32ce7dd9b5164820 (diff)
downloadvim-karlmarks-d94b51cb37571f1dea71e1def66a93807a57469e.tar.bz2
vim-karlmarks-d94b51cb37571f1dea71e1def66a93807a57469e.zip
Colors fixed for screen(1)
-rw-r--r--doc/screen.txt9
-rw-r--r--vimrc9
2 files changed, 15 insertions, 3 deletions
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 @@
1To run vim inside a screen session:
2
3TERM=vte-256color screen vim
4
5works very well. But if you are using another terminal you may be interested in
6other possibilities, like this:
7
8find /usr/share/terminfo/ | grep screen | grep 256
9
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'
235" settings ============================================. 235" settings ============================================.
236" 236"
237" autocmd BufEnter * lcd %:p:h 237" autocmd BufEnter * lcd %:p:h
238set autochdir | " When on, Vim will change the current working directory 238" set autochdir | " When on, Vim will change the current working directory
239set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here 239set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here
240" set selectmode=mouse,key,cmd | " enters vim's select mode when pressing shift-left or shift-END 240" set selectmode=mouse,key,cmd | " enters vim's select mode when pressing shift-left or shift-END
241" set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text 241" set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text
242set breakindent | " Every wrapped line will continue visually indented 242set breakindent | " Every wrapped line will continue visually indented
243set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) 243set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well)
244set cmdheight=2 | " self explaining
244set complete+=d | " scan current and included files for defined name or macro 245set complete+=d | " scan current and included files for defined name or macro
245set complete+=i | " scan current and included files for completions 246set complete+=i | " scan current and included files for completions
246set concealcursor=nc | " limits the display of concealed text to normal and command mode 247set 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
274set splitbelow | " open new windows below the current one (i find that more intuitive) 275set splitbelow | " open new windows below the current one (i find that more intuitive)
275set shiftround | " indent/unindent snaps to multiple of shiftwidth 276set shiftround | " indent/unindent snaps to multiple of shiftwidth
276set showcmd | " essential: show keys of combined commands in the lower right corner 277set showcmd | " essential: show keys of combined commands in the lower right corner
277" set t_Co=256 | " required on some ssh sessions 278set t_Co=256 | " required on some ssh sessions
278" set textwidth=100 | " line length (80 used to be default, but...) 279" set textwidth=100 | " line length (80 used to be default, but...)
280" set textwidth=120 | " line length (80 used to be default, but...)
281set colorcolumn=120
279set thesaurus+=/home/max/.vim/thesaurus/php.txt 282set thesaurus+=/home/max/.vim/thesaurus/php.txt
280set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) 283set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth)
281set ttimeoutlen=10 | " set esc key timeout in ms- 284set ttimeoutlen=10 | " set esc key timeout in ms-
@@ -446,7 +449,7 @@ if !has('nvim')
446 set ttymouse=xterm2 449 set ttymouse=xterm2
447 set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim 450 set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim
448 set ttyfast | " improves speed for terminal vim (incomp. with nvim) 451 set ttyfast | " improves speed for terminal vim (incomp. with nvim)
449 set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim 452 " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim
450else 453else
451 " shortcut \t opens a terminal in a horizontal split 454 " shortcut \t opens a terminal in a horizontal split
452 nnoremap <leader>t :new +terminal<CR> 455 nnoremap <leader>t :new +terminal<CR>
..