aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorMax Christian Pohle2017-03-20 09:05:45 +0100
committerMax Christian Pohle2017-03-20 09:05:45 +0100
commit291d8a994f70423805bdefb5ecfe4f7d73f80922 (patch)
tree52db06828425f1a3ba02619cdc7f19a52d8b370b /vimrc
parentf53a1526417493746d771f6243f30ba62ef7438c (diff)
downloadvim-karlmarks-291d8a994f70423805bdefb5ecfe4f7d73f80922.tar.bz2
vim-karlmarks-291d8a994f70423805bdefb5ecfe4f7d73f80922.zip
Fixed color scheme to be used with screen
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc18
1 files changed, 12 insertions, 6 deletions
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
64 64
65" NERDTree: ==========================================. 65" NERDTree: ==========================================.
66Plug 'scrooloose/nerdtree' | " replace NetRW, which is kind of buggy 66Plug 'scrooloose/nerdtree' | " replace NetRW, which is kind of buggy
67let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory 67let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory
68let NERDTreeIgnore = ['\.aux$']
68set winwidth=30 " keep NERDTreeWindow at least this size 69set winwidth=30 " keep NERDTreeWindow at least this size
69set winminwidth=30 " (and all other windows, so TODO: watch out) 70set winminwidth=30 " (and all other windows, so TODO: watch out)
70 71
@@ -235,12 +236,13 @@ let g:spellfile_URL = 'http://ftp.vim.org/vim/runtime/spell'
235" settings ============================================. 236" settings ============================================.
236" 237"
237" autocmd BufEnter * lcd %:p:h 238" autocmd BufEnter * lcd %:p:h
238set autochdir | " When on, Vim will change the current working directory 239" 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 240set 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 241" 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 242" set keymodel=startsel,stopsel | " makes shift-left, shift-right available for selecting text
242set breakindent | " Every wrapped line will continue visually indented 243set breakindent | " Every wrapped line will continue visually indented
243set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) 244set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well)
245set cmdheight=2 | " sets the command line's height
244set complete+=d | " scan current and included files for defined name or macro 246set complete+=d | " scan current and included files for defined name or macro
245set complete+=i | " scan current and included files for completions 247set complete+=i | " scan current and included files for completions
246set concealcursor=nc | " limits the display of concealed text to normal and command mode 248set 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
274set splitbelow | " open new windows below the current one (i find that more intuitive) 276set splitbelow | " open new windows below the current one (i find that more intuitive)
275set shiftround | " indent/unindent snaps to multiple of shiftwidth 277set shiftround | " indent/unindent snaps to multiple of shiftwidth
276set showcmd | " essential: show keys of combined commands in the lower right corner 278set showcmd | " essential: show keys of combined commands in the lower right corner
277" set t_Co=256 | " required on some ssh sessions 279set t_Co=256 | " required on some ssh sessions
278" set textwidth=100 | " line length (80 used to be default, but...) 280" set textwidth=100 | " line length (80 used to be default, but...)
281set textwidth=120 | " @IPQ
282set colorcolumn=120 | " @IPQ
279set thesaurus+=/home/max/.vim/thesaurus/php.txt 283set thesaurus+=/home/max/.vim/thesaurus/php.txt
280set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) 284set ts=4 sts=4 sw=4 expandtab | " @IPQ
281set ttimeoutlen=10 | " set esc key timeout in ms- 285set ttimeoutlen=50 | " set esc key timeout in ms-
282set updatetime=1000 | " updates the screen more often 286set updatetime=1000 | " updates the screen more often
283set writedelay=0 287set writedelay=0
284 288
@@ -372,6 +376,7 @@ if has("autocmd")
372 autocmd FileType python setlocal keywordprg=pydoc 376 autocmd FileType python setlocal keywordprg=pydoc
373 autocmd FileType vim setlocal keywordprg=:help |. 377 autocmd FileType vim setlocal keywordprg=:help |.
374 autocmd FileType c,cpp setlocal equalprg=clang-format 378 autocmd FileType c,cpp setlocal equalprg=clang-format
379 autocmd FileType c,cpp setlocal breakat-=-
375 380
376 " keyboard mapping for xml alike languages 381 " keyboard mapping for xml alike languages
377 " Alt-Up : Move cursor up one tag 382 " Alt-Up : Move cursor up one tag
@@ -406,6 +411,7 @@ if has("autocmd")
406 augroup END 411 augroup END
407 412
408 if has('nvim') 413 if has('nvim')
414 autocmd BufEnter term://* set nobuflisted
409 else 415 else
410 augroup vimonly 416 augroup vimonly
411 autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") 417 autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib")
@@ -446,7 +452,7 @@ if !has('nvim')
446 set ttymouse=xterm2 452 set ttymouse=xterm2
447 set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim 453 set ttyscroll=100 | " improves speed for terminal vim, incomp. with nvim
448 set ttyfast | " improves speed for terminal vim (incomp. with nvim) 454 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 455 " set termguicolors | " When on, uses highlight-guifg and highlight-guibg attributes in the terminal (=24bit color) incomp. with nvim
450else 456else
451 " shortcut \t opens a terminal in a horizontal split 457 " shortcut \t opens a terminal in a horizontal split
452 nnoremap <leader>t :new +terminal<CR> 458 nnoremap <leader>t :new +terminal<CR>
..