From 291d8a994f70423805bdefb5ecfe4f7d73f80922 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 20 Mar 2017 09:05:45 +0100 Subject: Fixed color scheme to be used with screen --- vimrc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 2217daa..a26e162 100644 --- a/vimrc +++ b/vimrc @@ -64,7 +64,8 @@ let g:netrw_altv = 1 | " open files on the righ " NERDTree: ==========================================. Plug 'scrooloose/nerdtree' | " replace NetRW, which is kind of buggy -let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use to create files in that included directory +let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use to create files in that included directory +let NERDTreeIgnore = ['\.aux$'] set winwidth=30 " keep NERDTreeWindow at least this size set winminwidth=30 " (and all other windows, so TODO: watch out) @@ -235,12 +236,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 | " sets the command line's height 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,11 +276,13 @@ 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 | " @IPQ +set colorcolumn=120 | " @IPQ 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- +set ts=4 sts=4 sw=4 expandtab | " @IPQ +set ttimeoutlen=50 | " set esc key timeout in ms- set updatetime=1000 | " updates the screen more often set writedelay=0 @@ -372,6 +376,7 @@ if has("autocmd") autocmd FileType python setlocal keywordprg=pydoc autocmd FileType vim setlocal keywordprg=:help |. autocmd FileType c,cpp setlocal equalprg=clang-format + autocmd FileType c,cpp setlocal breakat-=- " keyboard mapping for xml alike languages " Alt-Up : Move cursor up one tag @@ -406,6 +411,7 @@ if has("autocmd") augroup END if has('nvim') + autocmd BufEnter term://* set nobuflisted else augroup vimonly autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") @@ -446,7 +452,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