aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc15
1 files changed, 9 insertions, 6 deletions
diff --git a/vimrc b/vimrc
index a79d08c..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
@@ -241,7 +242,7 @@ set shell=/bin/bash | " many scripts rely on bash, but its path varies
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)
244set cmdheight=2 | " self explaining 245set cmdheight=2 | " sets the command line's height
245set 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
246set complete+=i | " scan current and included files for completions 247set complete+=i | " scan current and included files for completions
247set 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
@@ -277,11 +278,11 @@ set shiftround | " indent/unindent snaps to multiple of shiftwidt
277set 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
278set t_Co=256 | " required on some ssh sessions 279set t_Co=256 | " required on some ssh sessions
279" set textwidth=100 | " line length (80 used to be default, but...) 280" set textwidth=100 | " line length (80 used to be default, but...)
280" set textwidth=120 | " line length (80 used to be default, but...) 281set textwidth=120 | " @IPQ
281set colorcolumn=120 282set colorcolumn=120 | " @IPQ
282set thesaurus+=/home/max/.vim/thesaurus/php.txt 283set thesaurus+=/home/max/.vim/thesaurus/php.txt
283set ts=2 sts=2 sw=2 expandtab | " indentation which i like (abbr: tabstop, softtabstop, shiftwidth) 284set ts=4 sts=4 sw=4 expandtab | " @IPQ
284set ttimeoutlen=10 | " set esc key timeout in ms- 285set ttimeoutlen=50 | " set esc key timeout in ms-
285set updatetime=1000 | " updates the screen more often 286set updatetime=1000 | " updates the screen more often
286set writedelay=0 287set writedelay=0
287 288
@@ -375,6 +376,7 @@ if has("autocmd")
375 autocmd FileType python setlocal keywordprg=pydoc 376 autocmd FileType python setlocal keywordprg=pydoc
376 autocmd FileType vim setlocal keywordprg=:help |. 377 autocmd FileType vim setlocal keywordprg=:help |.
377 autocmd FileType c,cpp setlocal equalprg=clang-format 378 autocmd FileType c,cpp setlocal equalprg=clang-format
379 autocmd FileType c,cpp setlocal breakat-=-
378 380
379 " keyboard mapping for xml alike languages 381 " keyboard mapping for xml alike languages
380 " Alt-Up : Move cursor up one tag 382 " Alt-Up : Move cursor up one tag
@@ -409,6 +411,7 @@ if has("autocmd")
409 augroup END 411 augroup END
410 412
411 if has('nvim') 413 if has('nvim')
414 autocmd BufEnter term://* set nobuflisted
412 else 415 else
413 augroup vimonly 416 augroup vimonly
414 autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") 417 autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib")
..